source.ucregents.playground.samplegame
Class Obstacle
java.lang.Object
source.ucregents.playground.physics.BaseEntity
source.ucregents.playground.samplegame.Terrain
source.ucregents.playground.samplegame.Obstacle
- All Implemented Interfaces:
- java.lang.Cloneable, IDestroyable
public class Obstacle
- extends Terrain
- implements IDestroyable
Constructor Summary |
Obstacle()
|
Obstacle(double x,
double y,
double w,
double h,
float orientation,
int maxHP,
int startHP)
|
Methods inherited from class source.ucregents.playground.physics.BaseEntity |
calculateAxes, clone, Deserialize, Draw, getActualFrameDimensions, getAxes, getAxesClone, getAxis, getBounciness, getCenterPoint, getDrawType, getEvents, getFrameColor, getFrictionConstant, getGradientColor, getImageOffset, getName, getOrientation, getResizingObject, getRoundedShapeMass, getScale, getShape, getShapeColor, getShapeFrame, getShapeMass, getSideVectors, getULPoint, getUserEvents, getVertexCount, getVerticesCoordinates, isCircle, isOverlapping, isPolygon, isSelected, isVisible, OnCenterScale, OnCollisionWith, OnLocationChange, OnOrientationChange, OnULScale, RegisterEvent, RegisterEvent, RegisterEvents, RemoveEvent, RemoveEvents, resetFrameColor, Scale, ScaleAroundCenter, Serialize, setBounciness, setCenterPoint, setCenterPoint, setCollidable, setDrawType, setFrameColor, setFrictionConstant, setGradientColor, setImageOffset, setName, setOrientation, setScale, setSelected, setShapeColor, setULPoint, setULPoint, setVisible, toString, toXMLElement |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Obstacle
public Obstacle()
Obstacle
public Obstacle(double x,
double y,
double w,
double h,
float orientation,
int maxHP,
int startHP)
DefaultImageLocation
protected java.lang.String DefaultImageLocation()
- Description copied from class:
BaseEntity
- Provides the location of the default image
- Overrides:
DefaultImageLocation
in class BaseEntity
- Returns:
- Returns the location of the image
Destroy
public void Destroy()
- Specified by:
Destroy
in interface IDestroyable
getCurrentHP
public int getCurrentHP()
- Specified by:
getCurrentHP
in interface IDestroyable
getMaxHP
public int getMaxHP()
- Specified by:
getMaxHP
in interface IDestroyable
isCollidable
public boolean isCollidable()
- Description copied from class:
BaseEntity
- Determines whether or not this entity can be collided with by other entities.
- Overrides:
isCollidable
in class BaseEntity
- Returns:
- true if can be collided with
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interface IDestroyable
setCurrentHP
public final void setCurrentHP(int value)
- Specified by:
setCurrentHP
in interface IDestroyable
setMaxHP
public final void setMaxHP(int value)
- Specified by:
setMaxHP
in interface IDestroyable