RobotModel Class Reference
[Robot building minigame]

#include <RobotModel.h>

Inherits Layer.

Collaboration diagram for RobotModel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RobotModel (Point loc)
 ~RobotModel ()
void update ()
void generateModel (RobotModel *goal)
void updateType ()
int getValue (int row, int col)
 Returns the value at a specific location in the array.
void setValue (int row, int col, int value)
 Sets the value at a specific location in the array.
void changeType (int type, int part)
void resetInners ()
void dissapearArms ()
void moveInners (int xMove, int yMove)

Public Attributes

bool moving

Protected Attributes

int rModel [9][2]
 The array that models the robot.
ChangeableSpritehead
ChangeableSpritebody
ChangeableSpritewheels
ChangeableSpriteantenna
ChangeableSpritelarm
ChangeableSpriterarm
bool congrats
int curValue


Detailed Description

A 2D integer array model of every robot.

Constructor & Destructor Documentation

RobotModel::RobotModel ( Point  loc  ) 

RobotModel::~RobotModel (  ) 


Member Function Documentation

void RobotModel::changeType ( int  type,
int  part 
)

void RobotModel::dissapearArms (  ) 

void RobotModel::generateModel ( RobotModel goal  ) 

int RobotModel::getValue ( int  row,
int  col 
)

Returns the value at a specific location in the array.

void RobotModel::moveInners ( int  xMove,
int  yMove 
)

void RobotModel::resetInners (  ) 

void RobotModel::setValue ( int  row,
int  col,
int  value 
)

Sets the value at a specific location in the array.

void RobotModel::update (  ) 

void RobotModel::updateType (  ) 


Member Data Documentation

bool RobotModel::congrats [protected]

int RobotModel::curValue [protected]

int RobotModel::rModel[9][2] [protected]

The array that models the robot.


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 14:33:15 2009 for LearningGaming by  doxygen 1.5.7.1