Package com.mygdx.game.Entitys
Class College
- java.lang.Object
-
- com.mygdx.game.Entitys.Entity
-
- com.mygdx.game.Entitys.College
-
public class College extends Entity
Defines a college and its associated buildings.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.badlogic.gdx.math.Vector2getPosition()booleanisAlive()True as long as unharmed buildings remain, false otherwise.voidkill()NEW Can be called to kill a college and all of its buildingsvoidshoot(com.badlogic.gdx.math.Vector2 target)voidupdate()Similar to the Component's update event-
Methods inherited from class com.mygdx.game.Entitys.Entity
addComponent, addComponents, cleanUp, getComponent, getComponent, getComponents, getName, raiseEvents, setName
-
-
-
-
Method Detail
-
isAlive
public boolean isAlive()
True as long as unharmed buildings remain, false otherwise.
-
kill
public void kill()
NEW Can be called to kill a college and all of its buildings
-
shoot
public void shoot(com.badlogic.gdx.math.Vector2 target)
-
getPosition
public com.badlogic.gdx.math.Vector2 getPosition()
-
-