AI for Games 1.1.1
|
Public Member Functions | |
ArrowPic (PApplet papp) | |
ArrowPic (PApplet papp, float length, int fill, int stroke, float weight) | |
void | draw (BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float etime) |
ArrowPic | appearance (int fill, int stroke, float weight) |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
PApplet | app = null |
![]() | |
int | hints = 0 |
Creates an triangular shape that looks like an arrow.
game2dai.entityshapes.ps.ArrowPic.ArrowPic | ( | PApplet | papp | ) |
Create an arrow 20 units long and 12 units at its thick end with a white body and thin black border.
papp |
game2dai.entityshapes.ps.ArrowPic.ArrowPic | ( | PApplet | papp, |
float | length, | ||
int | fill, | ||
int | stroke, | ||
float | weight | ||
) |
Create an arrow of user specified length and colours.
papp | |
length | the length of the arrow |
fill | the fill colour |
stroke | the border colour |
weight | the border thicknesss |
ArrowPic game2dai.entityshapes.ps.ArrowPic.appearance | ( | int | fill, |
int | stroke, | ||
float | weight | ||
) |
Cahneg the appearance of the arrow
fill | the fill colour |
stroke | the border colour |
weight | the border thicknesss |
void game2dai.entityshapes.ps.ArrowPic.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.