Structure of a player.
A player is a singular game unit with 2D coordinates, a symbol, a health, a defense, an attack, a vision and more. TODO
- Parameters
-
| symbol | Character to be displayed on the screen |
| x | player x coordinate |
| y | player y coordinate |
| health | Health of the player |
| max_health | Maximum health of the player set to MAX_HEALTH macro |
| defense | Defense of the player |
| attack | Attack of the player |
| vision | Vision of the player in cells |
| vision_width | Vision width of the player in cells |
| earing_range_close | Earling range of the player in cells |
| earing_range_far | Earling range of the player in cells |
| earing_prob | Probability of hearing a close monster when a player moves (in %) |
| sensory_potion_turns | Number of turns the player has sensory potion effect |
| potion_invincibility_turns | Number of turns the player has invincibility potion effect |
| direction | Direction of the player (used for throwing projectiles) |
| color | Color of the player changes when he takes damage or uses a potion |
| inventory | Inventory of the player |