|
Cytopia
0.3
A city building simulation game
|
#include <MapGrid.hxx>
Inheritance diagram for MapGrid< T >:
Collaboration diagram for MapGrid< T >:Public Member Functions | |
| MapGrid (T node) | |
| virtual | ~MapGrid ()=0 |
| size_t | size () |
| virtual void | addNode (T node) |
| Add a T node to this gridnode. More... | |
| virtual void | removeNode (Point coordinate) |
| Remove a node on a given coordinate from this gridnode. More... | |
| bool | isNeighbor (Point coordinate) const |
| If this coordinate is a neighbor of one of the node in the grid. More... | |
| bool | isMemberOf (Point coordinate) const |
| If this coordinate is part of the grid. More... | |
| auto | begin () |
| auto | end () |
Protected Attributes | |
| std::vector< T > | m_gridNodes |
Definition at line 7 of file MapGrid.hxx.
Definition at line 3 of file MapGrid.inl.hxx.
Definition at line 5 of file MapGrid.inl.hxx.
|
virtual |
Add a T node to this gridnode.
| node | to add |
Reimplemented in ZoneArea.
Definition at line 7 of file MapGrid.inl.hxx.
Here is the caller graph for this function:
|
inline |
|
inline |
If this coordinate is part of the grid.
| coordinate | the point to check |
Definition at line 22 of file MapGrid.inl.hxx.
If this coordinate is a neighbor of one of the node in the grid.
| coordinate | the point to check |
Definition at line 16 of file MapGrid.inl.hxx.
Remove a node on a given coordinate from this gridnode.
| coordinate | of the node |
Definition at line 9 of file MapGrid.inl.hxx.
|
inline |
Definition at line 13 of file MapGrid.hxx.
|
protected |
Definition at line 50 of file MapGrid.hxx.