|
| | AggressiveNpc (GameWorld *pGameWorld, std::string name, int aggressionRange, int baseDamage, int baseAccuracy, SpawnCoordinateBounds spawnCoordinateBounds, std::vector< std::string > chatResponses, unsigned int id=0, Coordinates location=Coordinates()) |
| |
| | ~AggressiveNpc ()=default |
| |
| void | update () override |
| | Updates the AggressiveNpc. More...
|
| |
| | Npc (GameWorld *pGameWorld, std::string name, int baseDamage, int baseAccuracy, SpawnCoordinateBounds spawnCoordinateBounds, std::vector< std::string > chatResponses, unsigned int id=0, Coordinates location=Coordinates()) |
| |
| | ~Npc ()=default |
| |
| void | update () |
| | Updates the NPC. More...
|
| |
| void | respawn () |
| | Respawn the NPC. More...
|
| |
| std::string | getChatResponse () |
| | Get a random chat response. More...
|
| |
| void | addRandomItemToInventory () |
| |
| | Entity (GameWorld *pGameWorld, std::string name, int baseAccuracy, int baseDamage, SpawnCoordinateBounds spawnCoordinateBounds, unsigned int id=0, Coordinates location=Coordinates()) |
| |
| | ~Entity ()=default |
| |
| unsigned int | getId () |
| | Get the type id of this entity. More...
|
| |
| unsigned int | getInstanceId () |
| | Get the unique id of this entity. More...
|
| |
| std::string | getName () |
| | Get the name of this entity. More...
|
| |
| Coordinates & | getLocation () |
| | Get the current location of this entity. More...
|
| |
| void | setLocation (Coordinates location) |
| | Set the location of this entity. More...
|
| |
| Coordinates | getRespawnLocation () |
| | Returns a random location within the spawn bounds. More...
|
| |
| std::shared_ptr< Action > & | getCurrentAction () |
| | Get the current action of this entity. More...
|
| |
| int | getHp () |
| | Get the current hp of this entity. More...
|
| |
| int | getMaxHp () |
| | Get the maximum hp of this entity. More...
|
| |
| Inventory & | getInventory () |
| | Get the Inventory object of this entity. More...
|
| |
| Equipment & | getEquipment () |
| | Get the Equipment object of this entity. More...
|
| |
| int | getRange () |
| | Get tha attack range of this entity. More...
|
| |
| int | getAttackSpeed () |
| | Get the attack speed of this entity in milliseconds. More...
|
| |
| std::chrono::milliseconds | getMoveSpeed () |
| | Get the movement speed of this entity. More...
|
| |
| GameWorld * | getGameWorld () |
| | Get pointer to the GameWorld that this entity resides in. More...
|
| |
| void | changeHp (int amount) |
| | Change the hp of this entity by amount. More...
|
| |
| void | setAction (std::shared_ptr< Action > action) |
| | Set the current action to parameter action. More...
|
| |
| bool | move (Coordinates location) |
| | Move to a neighboring tile. More...
|
| |
| virtual void | attack (Entity &target) |
| | Perform an attack on target entity. More...
|
| |
| void | pickUpItem (int itemId, Coordinates itemLocation) |
| | Pick up an item. More...
|
| |
| void | dropItem (int itemId) |
| | Drop an item. More...
|
| |
| SkillSet & | getSkillSet () |
| | Get the SkillSet of this entity. More...
|
| |
| bool | isDisconnected () |
| | Returns whether entity is disconnected, only relevant for players. More...
|
| |
| void | setDisconnected () |
| | Sets entity as disconnected, only relevant for players. More...
|
| |
AggressiveNpc is a type of Npc that attacks the player within its aggression range.