Snake

Undocumented in source.

Constructors

this
this(Game game_)
Undocumented in source.

Members

Functions

addPart
SnakeEntity addPart()
Undocumented in source. Be warned that the author may not have intended to support it.
canDirection
bool canDirection(Direction dir)
Undocumented in source. Be warned that the author may not have intended to support it.
generate
void generate(int length)
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

direction
Direction direction;
Undocumented in source.
doAdd
bool doAdd;
Undocumented in source.
g
Game g;
Undocumented in source.
head
int head;
Undocumented in source.
headPosition
Vector2i headPosition;
Undocumented in source.
len
int len;
Undocumented in source.
parts
SnakeEntity[] parts;
Undocumented in source.
tail
int tail;
Undocumented in source.
updateInterval
float updateInterval;
Undocumented in source.
updateTimer
float updateTimer;
Undocumented in source.

Meta