feud.testgame.view
Class DecalManager

java.lang.Object
  extended byfeud.testgame.view.DecalManager

public class DecalManager
extends java.lang.Object

A simple manager class for managing decals. Decals are easy to handle because they exist on the client only.


Constructor Summary
DecalManager(com.threed.jpct.World world)
          Create a new decal manager with a default number of decals.
DecalManager(com.threed.jpct.World level, int maxDecals)
          Create a new decal manager with a maximum number of decals.
 
Method Summary
 void createDecal(com.threed.jpct.SimpleVector pos, com.threed.jpct.SimpleVector normal)
          Creates a new decal at the given position with the given orientation.
 void reset()
          Sets all decals to invisible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecalManager

public DecalManager(com.threed.jpct.World world)
Create a new decal manager with a default number of decals.

Parameters:
world - the world

DecalManager

public DecalManager(com.threed.jpct.World level,
                    int maxDecals)
Create a new decal manager with a maximum number of decals.

Parameters:
level - the world.
maxDecals - the max. number of decals
Method Detail

reset

public void reset()
Sets all decals to invisible.


createDecal

public void createDecal(com.threed.jpct.SimpleVector pos,
                        com.threed.jpct.SimpleVector normal)
Creates a new decal at the given position with the given orientation.

Parameters:
pos - the position
normal - the orientation. The decal will be placed perpendicular to the normal