moagg.model.object.sprite
Class Sam

java.lang.Object
  extended by com.golden.gamedev.object.Sprite
      extended by moagg.model.object.sprite.AbstractMoaggSprite
          extended by moagg.model.object.sprite.Sam
All Implemented Interfaces:
java.io.Serializable, DestroyableObject, MoaggGameObject, OrientationObject, ShooterObject

public class Sam
extends AbstractMoaggSprite
implements MoaggGameObject, OrientationObject, DestroyableObject, ShooterObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.golden.gamedev.object.Sprite
defaultCollisionShape, height, width
 
Constructor Summary
Sam()
           
 
Method Summary
 void destroy()
          Calling this method will initiate the destruction of this object.
 int getHealth()
           
 int getMissileFuel()
           
 MissileHeading getMissileHeading()
           
 MissileWarhead getMissileWarhead()
           
 Orientation getOrientation()
           
 int getScorePoints()
           
 Weapon getWeapon()
           
 void setDestroyable(Destroyable destroyable)
           
 void setHealth(int health)
           
 void setMissileFuel(int missileFuel)
           
 void setMissileHeading(MissileHeading missileHeading)
           
 void setMissileWarhead(MissileWarhead missileWarhead)
           
 void setOrientation(Orientation orientation)
           
 void setWeapon(Weapon weapon)
           
 void update(long elapsedTime)
           
 
Methods inherited from class moagg.model.object.sprite.AbstractMoaggSprite
addSpeed, getPositionRectangle, getRGB, getSpeed, hide, isVisible, setRGB, setSpeed, setVisible, show
 
Methods inherited from class com.golden.gamedev.object.Sprite
addHorizontalSpeed, addVerticalSpeed, forceX, forceY, getBackground, getCenterX, getCenterY, getDataID, getDefaultCollisionShape, getDistance, getHeight, getHorizontalSpeed, getID, getImage, getLayer, getOldX, getOldY, getScreenX, getScreenY, getVerticalSpeed, getWidth, getX, getY, isActive, isImmutable, isOnScreen, isOnScreen, move, moveTo, moveX, moveY, render, render, setActive, setBackground, setDataID, setHorizontalSpeed, setID, setImage, setImmutable, setLayer, setLocation, setMovement, setSpeed, setVerticalSpeed, setX, setY, updateMovement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 

Constructor Detail

Sam

public Sam()
Method Detail

setDestroyable

public void setDestroyable(Destroyable destroyable)

getHealth

public int getHealth()
Specified by:
getHealth in interface DestroyableObject
Returns:
The current health points of this object.

setHealth

public void setHealth(int health)
Specified by:
setHealth in interface DestroyableObject
Parameters:
health - The new amount of health points to set for this object.

destroy

public void destroy()
Description copied from interface: DestroyableObject
Calling this method will initiate the destruction of this object.

Specified by:
destroy in interface DestroyableObject

getScorePoints

public int getScorePoints()
Specified by:
getScorePoints in interface DestroyableObject
Returns:
The points that shall be added to the player's score.

getWeapon

public Weapon getWeapon()
Specified by:
getWeapon in interface ShooterObject

setWeapon

public void setWeapon(Weapon weapon)
Specified by:
setWeapon in interface ShooterObject

getOrientation

public Orientation getOrientation()
Specified by:
getOrientation in interface OrientationObject

setOrientation

public void setOrientation(Orientation orientation)

getMissileFuel

public int getMissileFuel()

setMissileFuel

public void setMissileFuel(int missileFuel)

getMissileHeading

public MissileHeading getMissileHeading()

setMissileHeading

public void setMissileHeading(MissileHeading missileHeading)

getMissileWarhead

public MissileWarhead getMissileWarhead()

setMissileWarhead

public void setMissileWarhead(MissileWarhead missileWarhead)

update

public void update(long elapsedTime)
Overrides:
update in class com.golden.gamedev.object.Sprite


Copyright © 2008. All Rights Reserved.