net.sf.tankbattles.configuration
Class Obstacle

java.lang.Object
  extended by 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.
 
Constructor Summary
Obstacle()
           
 
Method Summary
 com.jme.math.Vector3f getInitialPosition()
           
 java.net.URL getModelFile()
           
 java.lang.String getType()
           
 void setInitialPosition(com.jme.math.Vector3f position)
           
 void setModelFile(java.net.URL modelFile)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Obstacle

public Obstacle()
Method Detail

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)