AI for Games 1.1.1
|
Public Member Functions | |
CirclePic (PApplet papp) | |
CirclePic (PApplet papp, float size, int fill, int stroke, float weight) | |
CirclePic | appearance (int fill, int stroke, float weight) |
void | draw (BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float etime) |
![]() | |
PicturePS () | |
PicturePS (PApplet papp) | |
void | setApplet (PApplet app) |
![]() | |
Picture () | |
void | draw (BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY) |
void | draw (BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float elapsedTime) |
void | showHints (int hints) |
void | addHints (int hints) |
void | removeHints (int hints) |
void | removeAllHints () |
int | getHints () |
Private Attributes | |
float | diam = 10 |
int | fillCol |
int | strokeCol |
float | strokeWeight |
Additional Inherited Members | |
![]() | |
PApplet | app = null |
![]() | |
int | hints = 0 |
A simple circular picture with user defined size and colour.
game2dai.entityshapes.ps.CirclePic.CirclePic | ( | PApplet | papp | ) |
Create a white circle with a thin black border of size 10.
papp |
game2dai.entityshapes.ps.CirclePic.CirclePic | ( | PApplet | papp, |
float | size, | ||
int | fill, | ||
int | stroke, | ||
float | weight | ||
) |
Create a circle picture
papp | |
size | the diameter (2x collision radius) |
fill | the fill colour |
stroke | the border colour |
weight | the border thickness |
CirclePic game2dai.entityshapes.ps.CirclePic.appearance | ( | int | fill, |
int | stroke, | ||
float | weight | ||
) |
Change the drawing factors.
fill | the fill colour |
stroke | the border colour |
weight | the border thickness |
void game2dai.entityshapes.ps.CirclePic.draw | ( | BaseEntity | owner, |
float | posX, | ||
float | posY, | ||
float | velX, | ||
float | velY, | ||
float | headX, | ||
float | headY, | ||
float | etime | ||
) |
Draw the entity.
owner | the entity that owns this renderer. |
posX | real world position (x) |
posY | real world position (x) |
velX | magnitude of the velocity vector in the x direction |
velY | magnitude of the velocity vector in the y direction |
headX | magnitude of the heading vector in the x direction |
headY | magnitude of the heading vector in the y direction |
etime | the elapsed time in seconds since last update |
Reimplemented from game2dai.entityshapes.Picture.