AI for Games 1.1.1
|
Public Member Functions | |
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 () |
Protected Attributes | |
PApplet | app = null |
![]() | |
int | hints = 0 |
This is the base class for all entity renderers to be used in Processing
For details about rendering hints for steering behaviours see the Picture class API.
game2dai.entityshapes.ps.PicturePS.PicturePS | ( | ) |
Default constructor - use this constructor if the child class is to be a local class in the sketch.
This constructor must be called by all child class constructors so that the renderer has access to the drawing surface.
game2dai.entityshapes.ps.PicturePS.PicturePS | ( | PApplet | papp | ) |
Use this constructor if the child class is to be a top level class (either in its own .java tab or declared as static in a .pde tab) in the sketch.
This constructor must be called by all child class constructors so that the renderer has access to the drawing surface.
papp |
void game2dai.entityshapes.ps.PicturePS.setApplet | ( | PApplet | app | ) |
This method allows the user to specify the PApplet object responsible for drawing this picture. This need only be called if the renderer was created with the default (no parameter) constructor and you want to display hints.
app |
|
protected |
Used for drawing the shape