#include <stage.hh>

Classes | |
| struct | config_t |
Public Types | |
| enum | cmd_t { CMD_NOOP = 0, CMD_OPEN, CMD_CLOSE, CMD_UP, CMD_DOWN } |
| enum | lift_state_t { LIFT_DOWN = 0, LIFT_UP, LIFT_UPPING, LIFT_DOWNING } |
| enum | paddle_state_t { PADDLE_OPEN = 0, PADDLE_CLOSED, PADDLE_OPENING, PADDLE_CLOSING } |
Public Member Functions | |
| void | CommandClose () |
| void | CommandDown () |
| void | CommandOpen () |
| void | CommandUp () |
| config_t | GetConfig () |
| virtual void | Load () |
| ModelGripper (World *world, Model *parent, const std::string &type) | |
| virtual void | Save () |
| void | SetCommand (cmd_t cmd) |
| void | SetConfig (config_t &newcfg) |
| virtual | ~ModelGripper () |
Static Public Attributes | |
| static const Size | size |
Private Member Functions | |
| virtual void | DataVisualize (Camera *cam) |
| void | FixBlocks () |
| void | PositionPaddles () |
| virtual void | Update () |
| void | UpdateBreakBeams () |
| void | UpdateContacts () |
Private Attributes | |
| config_t | cfg |
| cmd_t | cmd |
| Block * | paddle_left |
| Block * | paddle_right |
Static Private Attributes | |
| static Option | showData |
| ModelGripper::ModelGripper | ( | World * | world, |
| Model * | parent, | ||
| const std::string & | type | ||
| ) |
Definition at line 62 of file model_gripper.cc.
| ModelGripper::~ModelGripper | ( | ) | [virtual] |
Definition at line 107 of file model_gripper.cc.
| void Stg::ModelGripper::CommandClose | ( | ) | [inline] |
| void Stg::ModelGripper::CommandDown | ( | ) | [inline] |
| void Stg::ModelGripper::CommandOpen | ( | ) | [inline] |
| void Stg::ModelGripper::CommandUp | ( | ) | [inline] |
| void ModelGripper::DataVisualize | ( | Camera * | cam | ) | [private, virtual] |
Reimplemented from Stg::Model.
Definition at line 493 of file model_gripper.cc.
| void ModelGripper::FixBlocks | ( | ) | [private] |
Definition at line 185 of file model_gripper.cc.
| config_t Stg::ModelGripper::GetConfig | ( | ) | [inline] |
| void ModelGripper::Load | ( | void | ) | [virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
Definition at line 113 of file model_gripper.cc.
| void ModelGripper::PositionPaddles | ( | ) | [private] |
Definition at line 204 of file model_gripper.cc.
| void ModelGripper::Save | ( | void | ) | [virtual] |
save the state of the model to the current world file
Reimplemented from Stg::Model.
Definition at line 163 of file model_gripper.cc.
| void Stg::ModelGripper::SetCommand | ( | cmd_t | cmd | ) | [inline] |
| void Stg::ModelGripper::SetConfig | ( | config_t & | newcfg | ) | [inline] |
| void ModelGripper::Update | ( | void | ) | [private, virtual] |
Reimplemented from Stg::Model.
Definition at line 223 of file model_gripper.cc.
| void ModelGripper::UpdateBreakBeams | ( | ) | [private] |
Definition at line 360 of file model_gripper.cc.
| void ModelGripper::UpdateContacts | ( | ) | [private] |
Definition at line 403 of file model_gripper.cc.
config_t Stg::ModelGripper::cfg [private] |
cmd_t Stg::ModelGripper::cmd [private] |
Block* Stg::ModelGripper::paddle_left [private] |
Block* Stg::ModelGripper::paddle_right [private] |
Option ModelGripper::showData [static, private] |
const Size Stg::ModelGripper::size [static] |