Manages a collection of creeper entities and their interactions.
More...
#include <CreepersManager.hpp>
|
| | CreepersManager (std::shared_ptr< CreepersParams > params) |
| | Constructs a CreepersManager object.
|
| |
| void | beginAndFindSteves (const std::vector< std::shared_ptr< Steve > > &steves) |
| | Initializes creepers and associates them with nearby Steves.
|
| |
| const decltype(creepers_) & | getCreepers () const |
| | Provides constant access to the collection of all creepers.
|
| |
| void | walk () |
| | Executes the walking behavior for all creepers.
|
| |
| void | refreshActives () |
| | Refreshes the list of active creepers.
|
| |
| template<typename Units > |
| void | interactWith (Units units) |
| | Allows creepers to interact with a collection of other units.
|
| |
|
| decltype(creepers_) & | getCreepersRef () |
| | Provides access to the collection of all creepers.
|
| |
Manages a collection of creeper entities and their interactions.
◆ CreepersManager()
| CreepersManager::CreepersManager |
( |
std::shared_ptr< CreepersParams > |
params | ) |
|
Constructs a CreepersManager object.
- Parameters
-
| params | Shared pointer to creeper parameters. |
◆ beginAndFindSteves()
| void CreepersManager::beginAndFindSteves |
( |
const std::vector< std::shared_ptr< Steve > > & |
steves | ) |
|
Initializes creepers and associates them with nearby Steves.
- Parameters
-
| steves | A vector of shared pointers to Steve objects. |
◆ getCreepers()
| const decltype(creepers_) & CreepersManager::getCreepers |
( |
| ) |
const |
|
inline |
Provides constant access to the collection of all creepers.
- Returns
- Constant reference to the vector of creepers.
◆ getCreepersRef()
| decltype(creepers_) & CreepersManager::getCreepersRef |
( |
| ) |
|
|
inlineprotected |
Provides access to the collection of all creepers.
- Returns
- Reference to the vector of creepers.
◆ interactWith()
template<typename Units >
| void CreepersManager::interactWith |
( |
Units |
units | ) |
|
|
inline |
Allows creepers to interact with a collection of other units.
- Template Parameters
-
| Units | A collection of unit objects. |
- Parameters
-
| units | The units with which the creepers interact. |
◆ refreshActives()
| void CreepersManager::refreshActives |
( |
| ) |
|
Refreshes the list of active creepers.
◆ walk()
| void CreepersManager::walk |
( |
| ) |
|
Executes the walking behavior for all creepers.
◆ Simulation
| friend CreepersManager::Simulation |
The documentation for this class was generated from the following files: