|
| | Steve (const size_t id, const std::shared_ptr< StevesParams > ¶ms) |
| | Constructs a Steve object.
|
| |
| void | updateState (const std::shared_ptr< Unit > &another) override |
| | Updates the state of the Steve based on interaction with another unit.
|
| |
| void | walk () override |
| | Executes the walking behavior of the Steve.
|
| |
| void | die () override |
| | Executes the death behavior of the Steve.
|
| |
| decltype(state_) | getState () |
| | Retrieves the current state of the Steve.
|
| |
| | Unit (size_t id, const std::shared_ptr< UnitsParams > ¶ms) |
| | Constructs a Unit object.
|
| |
| auto | getCoord () const |
| | Retrieves the current coordinates of the unit.
|
| |
| auto | getID () const |
| | Retrieves the ID of the unit.
|
| |
| virtual | ~Unit ()=default |
| | Virtual destructor for Unit.
|
| |
| | Unit (const Unit &other)=default |
| |
| Unit & | operator= (const Unit &other)=default |
| |
| | Unit (Unit &&other)=default |
| |
| Unit & | operator= (Unit &&other)=default |
| |
Represents an individual Steve unit in the simulation.
The Steve class manages the behavior, state, and interactions of a single Steve within the simulation.