Structure of a monster.
Contains the monster's position, attributes, name, symbol and index.
- Parameters
-
| x | Monster x coordinate |
| y | Monster y coordinate |
| health | Monster current hit points |
| max_health | Monster maximum hit points |
| attack | Monster attack points |
| defense | Monster defense points |
| is_alive | Is the Monster is alive? |
| symbol | Monster symbol |
| name | Monster name |
| color | The current color of the monster is affected by bombs |
| default_color | The default color of the monster |
| pathfinding | pathfinding type of the Monster |
| gold | Monster gold value when killed |
| noise | Monster noise |
| index | Monster index in the monsters array also stored in the cell (used as a pointer) |