net.sf.tankbattles.configuration
Class Obstacle
java.lang.Object
net.sf.tankbattles.configuration.Obstacle
public class Obstacle
- extends java.lang.Object
An obstacle that should be put in the battlefield.
Can be a static obstale like a rock or tree; a dynamic one like a box, or barrel.
Each obstacle can have its own 3D model and initial position.
- Author:
- erickpassos
Field Summary |
static java.lang.String |
DYNAMIC
|
static java.lang.String |
STATIC
Constants for the type attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATIC
public static final java.lang.String STATIC
- Constants for the type attribute. Will be changed for Enum.
- See Also:
- Constant Field Values
DYNAMIC
public static final java.lang.String DYNAMIC
- See Also:
- Constant Field Values
Obstacle
public Obstacle()
getModelFile
public java.net.URL getModelFile()
setModelFile
public void setModelFile(java.net.URL modelFile)
getInitialPosition
public com.jme.math.Vector3f getInitialPosition()
setInitialPosition
public void setInitialPosition(com.jme.math.Vector3f position)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)