|
| | Creeper (size_t id, const std::shared_ptr< CreepersParams > ¶ms) |
| | Constructs a Creeper object.
|
| |
| void | begin () |
| | Initializes the creeper's behavior.
|
| |
| void | steveSearch (const std::shared_ptr< Steve > &steve) |
| | Searches for a Steve target.
|
| |
| void | walk () override |
| | Executes the walking behavior of the creeper.
|
| |
| void | updateState (const std::shared_ptr< Unit > &another) override |
| | Updates the state of the unit based on interaction with another unit.
|
| |
| void | die () override |
| | Executes the death behavior of the unit.
|
| |
| decltype(state_) | getState () const |
| |
| | 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 creeper in the simulation.
The Creeper class manages the behavior, state, and interactions of a single creeper within the simulation.