Class GameTextures


  • public class GameTextures
    extends java.lang.Object
    Stores textures for classes to reference. This means multiple of the same sprite use the same reference. Because of this, render calls are reduced.
    Author:
    Riju De
    • Constructor Summary

      Constructors 
      Constructor Description
      GameTextures​(int truckNum)  
    • Method Summary

      Modifier and Type Method Description
      com.badlogic.gdx.graphics.Texture getBullet()  
      com.badlogic.gdx.graphics.Texture getDeadFortress​(int fortress)  
      com.badlogic.gdx.graphics.Texture getFireStation()  
      com.badlogic.gdx.graphics.Texture getFireStationDead()  
      com.badlogic.gdx.graphics.Texture getFortress​(int fortress)  
      com.badlogic.gdx.graphics.Texture getTruck()  
      com.badlogic.gdx.graphics.Texture getUFO()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GameTextures

        public GameTextures​(int truckNum)
        Parameters:
        truckNum - Which truck texture to get
    • Method Detail

      • getTruck

        public com.badlogic.gdx.graphics.Texture getTruck()
      • getUFO

        public com.badlogic.gdx.graphics.Texture getUFO()
      • getBullet

        public com.badlogic.gdx.graphics.Texture getBullet()
      • getFortress

        public com.badlogic.gdx.graphics.Texture getFortress​(int fortress)
      • getDeadFortress

        public com.badlogic.gdx.graphics.Texture getDeadFortress​(int fortress)
      • getFireStation

        public com.badlogic.gdx.graphics.Texture getFireStation()
      • getFireStationDead

        public com.badlogic.gdx.graphics.Texture getFireStationDead()