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

Public Member Functions

 WallPic (PApplet papp)
 
 WallPic (PApplet papp, int stroke, float weight)
 
void draw (BaseEntity owner, float posX, float posY, float velX, float velY, float headX, float headY, float etime)
 
void wallDetails (int col, float thickness)
 
- Public Member Functions inherited from game2dai.entityshapes.ps.PicturePS
 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 ()
 

Private Attributes

int strokeCol
 
float strokeWeight
 

Additional Inherited Members

- Protected Attributes inherited from game2dai.entityshapes.ps.PicturePS
PApplet app = null
 
- Protected Attributes inherited from game2dai.entityshapes.Picture
int hints = 0
 

Detailed Description

A very basic wall picture created using a single line.

Author
Peter Lager

Constructor & Destructor Documentation

◆ WallPic() [1/2]

game2dai.entityshapes.ps.WallPic.WallPic ( PApplet  papp)

A thin black line.

Parameters
papp

◆ WallPic() [2/2]

game2dai.entityshapes.ps.WallPic.WallPic ( PApplet  papp,
int  stroke,
float  weight 
)

User selected line colour and thickness.

Parameters
papp
strokethe line colour
weightthe line thickness

Member Function Documentation

◆ draw()

void game2dai.entityshapes.ps.WallPic.draw ( BaseEntity  owner,
float  posX,
float  posY,
float  velX,
float  velY,
float  headX,
float  headY,
float  etime 
)

Draw the entity.

Parameters
ownerthe entity that owns this renderer.
posXreal world position (x)
posYreal world position (x)
velXmagnitude of the velocity vector in the x direction
velYmagnitude of the velocity vector in the y direction
headXmagnitude of the heading vector in the x direction
headYmagnitude of the heading vector in the y direction
etimethe elapsed time in seconds since last update

Reimplemented from game2dai.entityshapes.Picture.

◆ wallDetails()

void game2dai.entityshapes.ps.WallPic.wallDetails ( int  col,
float  thickness 
)

Set wall colour and thickness (stroke weight)

Parameters
col
thickness

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