|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.golden.gamedev.object.Sprite moagg.model.object.sprite.AbstractMoaggSprite moagg.model.object.sprite.Laser
public class Laser
Field Summary |
---|
Fields inherited from class com.golden.gamedev.object.Sprite |
---|
defaultCollisionShape, height, width |
Constructor Summary | |
---|---|
Laser()
|
Method Summary | |
---|---|
void |
destroy()
Calling this method will initiate the destruction of this object. |
double |
getAngle()
|
int |
getDamage()
|
int |
getHealth()
|
int |
getScorePoints()
|
ShooterObject |
getShooter()
|
boolean |
isDestroyableByProjectile()
|
void |
setAngle(double angle)
|
void |
setDamage(int damage)
|
void |
setHealth(int health)
|
void |
setShooter(ShooterObject shooter)
|
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, update, updateMovement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Laser()
Method Detail |
---|
public ShooterObject getShooter()
getShooter
in interface ShootableObject
public void setShooter(ShooterObject shooter)
public int getHealth()
getHealth
in interface DestroyableObject
public void setHealth(int health)
setHealth
in interface DestroyableObject
health
- The new amount of health points to set for this object.public void destroy()
DestroyableObject
destroy
in interface DestroyableObject
public int getScorePoints()
getScorePoints
in interface DestroyableObject
public int getDamage()
getDamage
in interface ShootableObject
public void setDamage(int damage)
setDamage
in interface ShootableObject
damage
- The new damage points to set for this projectile.public boolean isDestroyableByProjectile()
isDestroyableByProjectile
in interface ShootableObject
public void setAngle(double angle)
public double getAngle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |