Argentum Online - Servidor
monster.h
1
#ifndef MONSTER_H
2
#define MONSTER_H
3
4
#include "../../../include/nlohmann/json.hpp"
5
#include "../../../include/types.h"
6
#include "entity.h"
7
8
class
Map
;
9
10
class
Monster
:
public
Entity
{
11
private
:
12
uint32_t sprite_id;
13
bool
alive;
14
15
public
:
16
Monster
(EntityId entity_id, nlohmann::json monster_info,
Map
& map);
17
18
entity_type_t get_type()
const override
;
19
20
nlohmann::json get_data()
const override
;
21
22
void
die()
override
;
23
bool
is_alive()
const override
;
24
25
bool
can_attack(
Entity
* attacked)
const override
;
26
27
void
update(uint64_t delta_t)
override
;
28
};
29
30
#endif // MONSTER_H
Monster
Definition:
monster.h:10
Entity
Definition:
entity.h:15
Map
Definition:
map.h:47
server
game
entities
monster.h
Generado por
1.8.19