public abstract class Picture
extends java.lang.Object
Constructor and Description |
---|
Picture()
This constructor is provided when not using Processing.
|
Modifier and Type | Method and Description |
---|---|
void |
addHints(int hints)
Add more steering behaviour (SB) hints to those already selected.
|
void |
draw(BaseEntity owner,
float posX,
float posY,
float velX,
float velY,
float headX,
float headY)
Deprecated.
|
void |
draw(BaseEntity owner,
float posX,
float posY,
float velX,
float velY,
float headX,
float headY,
float elapsedTime)
This method must be overridden in all child classes otherwise nothing is drawn.
|
int |
getHints()
Get the hints being currently used.
|
void |
removeAllHints()
Remove all steering behaviour (SB) hints.
|
void |
removeHints(int hints)
Remove some or all of the steering behaviour (SB) hints currently selected.
|
void |
showHints(int hints)
Defines the steering behaviour (SB) hints to be displayed.
|
@Deprecated public void draw(BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY)
public void draw(BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float elapsedTime)
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 directionvelY
- magnitude of the velocity vector in the y directionheadX
- magnitude of the heading vector in the x directionheadY
- magnitude of the heading vector in the y directionetime
- the elapsed time in seconds since last updatepublic void showHints(int hints)
hints
- public void addHints(int hints)
hints
- public void removeHints(int hints)
hints
- public void removeAllHints()
public int getHints()
Processing library AI_for_2D_Games by Peter Lager. (C) 2013