Class College


  • public class College
    extends Entity
    Defines a college and its associated buildings.
    • Constructor Detail

      • College

        public College()
      • College

        public College​(int factionId)
        Creates a college at the location associated with the given faction id.
        Parameters:
        factionId - numerical id of the faction
    • 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()
      • update

        public void update()
        Description copied from class: Entity
        Similar to the Component's update event
        Overrides:
        update in class Entity