Class Building

    • Constructor Detail

      • Building

        public Building()
      • Building

        public Building​(boolean isFlag)
        Flags are indestructible and mark college locations.
        Parameters:
        isFlag - set to true to create a flag
    • Method Detail

      • create

        public void create​(com.badlogic.gdx.math.Vector2 pos,
                           java.lang.String name)
        Creates a building with the given name at the specified location.
        Parameters:
        pos - 2D position vector
        name - name of building
      • destroy

        public void destroy()
        Replace the building with ruins and mark as broken.
      • isAlive

        public boolean isAlive()
      • EnterTrigger

        public void EnterTrigger​(CollisionInfo info)
        Destroys the building and marks cannonball for removal.
        Specified by:
        EnterTrigger in interface CollisionCallBack
        Parameters:
        info - CollisionInfo container