Class PlayerWall

java.lang.Object
  |
  +--PlayerWall

public class PlayerWall
extends java.lang.Object
implements LocationHandler

This class is responsible for drawing the wall behind the player's bike. A PlayerWall is associated to each player. It implements the LocationHandler Interface which methods are called from the PlayerKeyNavigator object.


Method Summary
 void AddCorner(javax.vecmath.Point3f p)
          Implementation of LocationHandler interface.
 void setColor(javax.vecmath.Color3f cCol)
          Sets the wall color.
 void SetLocation(javax.vecmath.Point3f p)
          Implementation of the LocationHandler interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setColor

public void setColor(javax.vecmath.Color3f cCol)
Sets the wall color.
Parameters:
cCol - Wall color

AddCorner

public void AddCorner(javax.vecmath.Point3f p)
Implementation of LocationHandler interface. Called whenever the player makes a 90° turn. The current dynamic wall will be replaced with a static wall.
Specified by:
AddCorner in interface LocationHandler
Parameters:
p - Location of the turn

SetLocation

public void SetLocation(javax.vecmath.Point3f p)
Implementation of the LocationHandler interface. Called whenever the player changes his position. The current dynamic wall will be adapted.
Specified by:
SetLocation in interface LocationHandler
Parameters:
p - The current player location