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.
  • Constructor Summary

    Constructors
    Constructor Description
    College()  
    College​(int factionId)
    Creates a college at the location associated with the given faction id.
  • Method Summary

    Modifier and Type Method Description
    void isAlive()
    True as long as unharmed buildings remain, false otherwise.
    void update()
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • isAlive

      public void isAlive()
      True as long as unharmed buildings remain, false otherwise.
    • update

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