public class BuildingPic extends PicturePS
Constructor and Description |
---|
BuildingPic(processing.core.PApplet papp)
Simple black and white with thin border design.
|
BuildingPic(processing.core.PApplet papp,
int fill,
int stroke,
float weight)
Use specified design.
|
Modifier and Type | Method and Description |
---|---|
BuildingPic |
appearance(float size,
int fill,
int stroke,
float weight)
Change the drawing factors.
|
void |
draw(BaseEntity owner,
float posX,
float posY,
float velX,
float velY,
float headX,
float headY,
float etime)
Draw the entity.
|
BuildingPic |
fill(int col)
Set the centre colour
|
BuildingPic |
stroke(int col)
Set the border colour
|
BuildingPic |
strokeWeight(float w)
Set the border thickness
|
addHints, draw, getHints, removeAllHints, removeHints, showHints
public BuildingPic(processing.core.PApplet papp)
papp
- public BuildingPic(processing.core.PApplet papp, int fill, int stroke, float weight)
papp
- fill
- the fill colourstroke
- the border colourweight
- the border thicknesspublic BuildingPic appearance(float size, int fill, int stroke, float weight)
fill
- the fill colourstroke
- the border colourweight
- the border thicknesspublic BuildingPic fill(int col)
public BuildingPic stroke(int col)
public BuildingPic strokeWeight(float w)
public void draw(BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float etime)
draw
in class Picture
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 updateProcessing library AI_for_2D_Games by Peter Lager. (C) 2013