Snoke
snake.h File Reference

Definitions and prototypes for Snake class. More...

#include <list>
#include <deque>
#include "../Common/common.h"
#include "../Labyrinth/labyrinth.h"
#include "../Labyrinth/change.h"
#include "../Ball/ball.h"
Include dependency graph for snake.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Snake
 Describes the Snake entity of the game. More...
 

Variables

const int WALLUP = -3
 the tested segment is intersecting with the upper boundary of the game field More...
 
const int WALLBOT = +3
 the tested segment is intersecting with the bottom boundary of the game field More...
 
const int WALLLEFT = -4
 the tested segment is intersecting with the left boundary of the game field More...
 
const int WALLRIGHT = +4
 the tested segment is intersecting with the right boundary of the game field More...
 
const int COLL = 5
 the tested segment is intersecting with a non-boundary Point of the game field More...
 
const int NOCOLL = 6
 the tested segment is NOT intersecting with any Point of the game labyrinth More...
 
const int BALL = 7
 the tested segment is intersecting with the Ball More...
 
const int MVRIGHT = +1
 snake's head is moving right More...
 
const int MVDOWN = +2
 snake's head is moving down More...
 
const int MVLEFT = -1
 snake's head is moving left More...
 
const int MVUP = -2
 snake's head is moving up More...
 
Point gameFieldSize
 

Detailed Description

Definitions and prototypes for Snake class.

Author
Yegor Ignatov
Version
0.1
Date
2019-05-03

Definition in file snake.h.

Variable Documentation

const int BALL = 7

the tested segment is intersecting with the Ball

Definition at line 47 of file snake.h.

const int COLL = 5

the tested segment is intersecting with a non-boundary Point of the game field

Definition at line 39 of file snake.h.

Point gameFieldSize

size of a game field(x, y)

Definition at line 17 of file game.cpp.

const int MVDOWN = +2

snake's head is moving down

Definition at line 56 of file snake.h.

const int MVLEFT = -1

snake's head is moving left

Definition at line 60 of file snake.h.

const int MVRIGHT = +1

snake's head is moving right

Definition at line 52 of file snake.h.

const int MVUP = -2

snake's head is moving up

Definition at line 64 of file snake.h.

const int NOCOLL = 6

the tested segment is NOT intersecting with any Point of the game labyrinth

Definition at line 43 of file snake.h.

const int WALLBOT = +3

the tested segment is intersecting with the bottom boundary of the game field

Definition at line 27 of file snake.h.

const int WALLLEFT = -4

the tested segment is intersecting with the left boundary of the game field

Definition at line 31 of file snake.h.

const int WALLRIGHT = +4

the tested segment is intersecting with the right boundary of the game field

Definition at line 35 of file snake.h.

const int WALLUP = -3

the tested segment is intersecting with the upper boundary of the game field

Definition at line 23 of file snake.h.