robot_api::Robot_Status Struct Reference

#include <robot_api.hpp>

Collaboration diagram for robot_api::Robot_Status:

Public Attributes

int power
 
int charge
 
int health
 
int defense_boost
 
list< int > capsules
 

Detailed Description

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.

Member Data Documentation

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::defense_boost

The documentation for this struct was generated from the following file: