#include <RobotModel.h>
Inherits Layer.

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. | |
| ChangeableSprite * | head |
| ChangeableSprite * | body |
| ChangeableSprite * | wheels |
| ChangeableSprite * | antenna |
| ChangeableSprite * | larm |
| ChangeableSprite * | rarm |
| bool | congrats |
| int | curValue |
| RobotModel::RobotModel | ( | Point | loc | ) |
| RobotModel::~RobotModel | ( | ) |
| 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 | ( | ) |
ChangeableSprite * RobotModel::antenna [protected] |
ChangeableSprite * RobotModel::body [protected] |
bool RobotModel::congrats [protected] |
int RobotModel::curValue [protected] |
ChangeableSprite* RobotModel::head [protected] |
ChangeableSprite * RobotModel::larm [protected] |
| bool RobotModel::moving |
ChangeableSprite * RobotModel::rarm [protected] |
int RobotModel::rModel[9][2] [protected] |
The array that models the robot.
ChangeableSprite * RobotModel::wheels [protected] |
1.5.7.1