#include <Cell.hpp>
◆ Cell() [1/2]
Horizon::Zone::Cell::Cell |
( |
uint8_t |
type | ) |
|
|
inline |
46 {
48 }
map_cell_types
Definition: MapDefinitions.hpp:34
map_cell_types _type
Definition: Cell.hpp:103
void validate_type(map_cell_types type)
Definition: Cell.hpp:63
References _type, and validate_type().
◆ Cell() [2/2]
Horizon::Zone::Cell::Cell |
( |
| ) |
|
|
inline |
◆ ~Cell()
Horizon::Zone::Cell::~Cell |
( |
| ) |
|
|
inline |
◆ get_type()
◆ isShootable()
bool Horizon::Zone::Cell::isShootable |
( |
| ) |
|
|
inline |
90{
return setting._shootable ? true :
false; }
struct Horizon::Zone::Cell::@134 setting
References setting.
◆ isWalkable()
bool Horizon::Zone::Cell::isWalkable |
( |
| ) |
|
|
inline |
◆ isWater()
bool Horizon::Zone::Cell::isWater |
( |
| ) |
|
|
inline |
◆ set_type()
void Horizon::Zone::Cell::set_type |
( |
uint8_t |
type | ) |
|
|
inline |
◆ setShootable()
void Horizon::Zone::Cell::setShootable |
( |
| ) |
|
|
inline |
◆ setWalkable()
void Horizon::Zone::Cell::setWalkable |
( |
| ) |
|
|
inline |
◆ setWater()
void Horizon::Zone::Cell::setWater |
( |
| ) |
|
|
inline |
◆ validate_type()
64 {
65 switch (type)
66 {
74
75
76
77
78
79
80
81
82 default:
83 break;
84 }
85 }
@ CELL_NONWALKABLE_GROUND
Definition: MapDefinitions.hpp:36
@ CELL_WALKABLE_SHOOTABLE_2
Definition: MapDefinitions.hpp:37
@ CELL_CLIFF_ONLY_SHOOTABLE_5
Definition: MapDefinitions.hpp:40
@ CELL_WALKABLE_SHOOTABLE_GROUND_0
Definition: MapDefinitions.hpp:35
@ CELL_WALKABLE_SHOOTABLE_6
Definition: MapDefinitions.hpp:41
@ CELL_WALKABLE_SHOOTABLE_4
Definition: MapDefinitions.hpp:39
@ CELL_WALKABLE_SHOOTABLE_WATER
Definition: MapDefinitions.hpp:38
void setShootable()
Definition: Cell.hpp:91
void setWalkable()
Definition: Cell.hpp:88
void setWater()
Definition: Cell.hpp:94
References CELL_CLIFF_ONLY_SHOOTABLE_5, CELL_NONWALKABLE_GROUND, CELL_WALKABLE_SHOOTABLE_2, CELL_WALKABLE_SHOOTABLE_4, CELL_WALKABLE_SHOOTABLE_6, CELL_WALKABLE_SHOOTABLE_GROUND_0, CELL_WALKABLE_SHOOTABLE_WATER, setShootable(), setWalkable(), and setWater().
Referenced by Cell(), and set_type().
◆ _is_water
unsigned Horizon::Zone::Cell::_is_water |
◆ _shootable
unsigned Horizon::Zone::Cell::_shootable |
◆ _type
◆ _walkable
unsigned Horizon::Zone::Cell::_walkable |
struct { ... } Horizon::Zone::Cell::setting |
◆ unused
unsigned Horizon::Zone::Cell::unused |
The documentation for this struct was generated from the following file:
- src/Server/Zone/Game/Map/Grid/Cell/Cell.hpp