AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.entityshapes.ps.PicturePS Class Reference
Inheritance diagram for game2dai.entityshapes.ps.PicturePS:

Public Member Functions

 PicturePS ()
 
 PicturePS (PApplet papp)
 
void setApplet (PApplet app)
 
- Public Member Functions inherited from game2dai.entityshapes.Picture
 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
 
- Protected Attributes inherited from game2dai.entityshapes.Picture
int hints = 0
 

Detailed Description

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.

Author
Peter Lager

Constructor & Destructor Documentation

◆ PicturePS() [1/2]

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.

◆ PicturePS() [2/2]

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.

Parameters
papp

Member Function Documentation

◆ setApplet()

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.

Parameters
app

Member Data Documentation

◆ app

PApplet game2dai.entityshapes.ps.PicturePS.app = null
protected

Used for drawing the shape


The documentation for this class was generated from the following file: