|
|
TSnakeList | m_links |
| |
|
Input | m_lastInput {1, 0} |
| |
◆ head()
| Position SnakeGame::Snake::head |
( |
| ) |
const |
|
inline |
Returns head position
- Returns
- Position head position
◆ increase()
Increases snake length, adds link to the tail
◆ links()
| const TSnakeList & SnakeGame::Snake::links |
( |
| ) |
const |
|
inline |
Returns list of all snake links
- Returns
- TSnakeList links
◆ move()
| void Snake::move |
( |
const Input & |
input | ) |
|
Moves snake links with a given input
- Parameters
-
◆ tail()
| Position SnakeGame::Snake::tail |
( |
| ) |
const |
|
inline |
Returns tail position
- Returns
- Position tail position
The documentation for this class was generated from the following files:
- Source/SnakeGame/Core/Snake.h
- Source/SnakeGame/Core/Snake.cpp