|
AI for Games 1.1.1
|

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 |
A very basic wall picture created using a single line.
| game2dai.entityshapes.ps.WallPic.WallPic | ( | PApplet | papp | ) |
A thin black line.
| papp |
| game2dai.entityshapes.ps.WallPic.WallPic | ( | PApplet | papp, |
| int | stroke, | ||
| float | weight | ||
| ) |
User selected line colour and thickness.
| papp | |
| stroke | the line colour |
| weight | the line thickness |
| 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.
| 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 direction |
| velY | magnitude of the velocity vector in the y direction |
| headX | magnitude of the heading vector in the x direction |
| headY | magnitude of the heading vector in the y direction |
| etime | the elapsed time in seconds since last update |
Reimplemented from game2dai.entityshapes.Picture.
| void game2dai.entityshapes.ps.WallPic.wallDetails | ( | int | col, |
| float | thickness | ||
| ) |
Set wall colour and thickness (stroke weight)
| col | |
| thickness |