nudsfml v0.0.10-alpha (2023-02-09T04:48:03Z)
Dub
Repo
SnakeEntity
gameentity
Undocumented in source.
class
SnakeEntity :
Entity
{
int
partsID
;
int
parentID
;
int
childID
;
RectangleShape
shape
;
Texture
texture
;
this
(Texture t);
void
update
(float dt);
void
draw
(RenderTarget target);
}
Constructors
this
this
(Texture t)
Undocumented in source.
Members
Functions
draw
void
draw
(RenderTarget target)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void
update
(float dt)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
childID
int
childID
;
Undocumented in source.
parentID
int
parentID
;
Undocumented in source.
partsID
int
partsID
;
Undocumented in source.
shape
RectangleShape
shape
;
Undocumented in source.
texture
Texture
texture
;
Undocumented in source.
Inherited Members
From Entity
position
Vector2f
position
;
Undocumented in source.
mapLocation
Vector2i
mapLocation
;
Undocumented in source.
id
int
id
;
Undocumented in source.
destroy
bool
destroy
;
Undocumented in source.
update
void
update
(float dt)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void
draw
(RenderTarget target)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
gameentity
classes
AppleEntity
Entity
SnakeEntity