#include <robot_api.hpp>
Public Attributes | |
int | power |
int | charge |
int | health |
int | defense_boost |
list< int > | capsules |
Represents current status of Robot, passed to Robot.act() method to let robot know its current health, charge, and capsules.
Definition at line 39 of file robot_api.hpp.
list<int> robot_api::Robot_Status::capsules |
Current number and power of capsules.
Each capsule is represented by an element of the list.
The value of the element of the array is equal to the power of the capsule.
In-progress capsules are not represented; use getInvestedBuildPower() for that.
Definition at line 61 of file robot_api.hpp.
Referenced by RoboSim::RoboAPIImplementor::scanEnemy().
int robot_api::Robot_Status::charge |
current charge.
Definition at line 45 of file robot_api.hpp.
Referenced by DefenderBot::act(), DemoBot::act(), RoboSim::RoboAPIImplementor::build(), RoboSim::RoboAPIImplementor::charge(), RoboSim::RoboAPIImplementor::defend(), RoboSim::executeSingleTimeStep(), RoboSim::RoboAPIImplementor::finalizeBuilding(), RoboSim::RoboAPIImplementor::repair(), RoboSim::RoboSim(), and RoboSim::RoboAPIImplementor::scanEnemy().
int robot_api::Robot_Status::defense_boost |
current defense boost
Definition at line 51 of file robot_api.hpp.
Referenced by RoboSim::RoboAPIImplementor::defend(), RoboSim::executeSingleTimeStep(), RoboSim::RoboAPIImplementor::processAttack(), RoboSim::RoboSim(), and RoboSim::RoboAPIImplementor::scanEnemy().
int robot_api::Robot_Status::health |
current health.
Definition at line 48 of file robot_api.hpp.
Referenced by DefenderBot::act(), RoboSim::RoboAPIImplementor::finalizeBuilding(), RoboSim::RoboAPIImplementor::processAttack(), RoboSim::RoboAPIImplementor::repair(), RoboSim::RoboSim(), and RoboSim::RoboAPIImplementor::scanEnemy().
int robot_api::Robot_Status::power |
remaining power for turn
Definition at line 42 of file robot_api.hpp.
Referenced by DefenderBot::act(), DemoBot::act(), RoboSim::RoboAPIImplementor::build(), RoboSim::RoboAPIImplementor::charge(), RoboSim::executeSingleTimeStep(), RoboSim::RoboAPIImplementor::repair(), and RoboSim::RoboAPIImplementor::scanEnemy().