public class Umbrella extends PicturePS
Constructor and Description |
---|
Umbrella(processing.core.PApplet papp,
double size)
Create a simple 8 piece black and white umbrella
|
Umbrella(processing.core.PApplet papp,
double size,
int[] colList)
Create an umbrella with at least 8 sections using the colour list.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(BaseEntity owner,
float posX,
float posY,
float velX,
float velY,
float headX,
float headY,
float etime)
Draw the entity.
|
void |
setFill(int[] colList)
Set the colours to be used by the brolly.
|
addHints, draw, getHints, removeAllHints, removeHints, showHints
public Umbrella(processing.core.PApplet papp, double size)
papp
- size
- (should equal the collision radius)public Umbrella(processing.core.PApplet papp, double size, int[] colList)
papp
- size
- the radius of the umbrella (should equal the collision radius)colList
- an array of colour valuespublic void setFill(int[] colList)
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