Serialized Form

  • Package model

    • Class model.Animator

      class Animator extends Object implements Serializable
      • Serialized Fields

        • entity
          Entity entity
          The animated Entity.
        • frame
          int frame
          Sprite frame.
        • path
          ArrayList<Point> path
          The animation path.
        • second
          double second
          The time spent to travel 1 block.
        • speedModifier
          double speedModifier
          The speed modifier.
        • steps
          int steps
          The steps taken in the round.
        • x
          double x
          x-coordinate of the Unit.
        • y
          double y
          y-coordinate of the Unit.
    • Class model.Assassin

      class Assassin extends Soldier implements Serializable
      • Serialized Fields

        • soldierTargets
          ArrayList<Soldier> soldierTargets
          The soldier targets of the Assassin.
    • Class model.Barracks

      class Barracks extends Building implements Serializable
    • Class model.Barricade

      class Barricade extends Tower implements Serializable
    • Class model.Building

      class Building extends Entity implements Serializable
      • Serialized Fields

        • canUpgrade
          boolean canUpgrade
          Returns if the building can be upgraded.
        • isDestroyed
          boolean isDestroyed
          Returns if the building is destroyed.
        • isUpgraded
          boolean isUpgraded
          Determines if the Barrack instance is upgraded to train special units.
        • upgradeCost
          int upgradeCost
          Returns the building's upgrade cost.
    • Class model.Castle

      class Castle extends Building implements Serializable
    • Class model.Climber

      class Climber extends Soldier implements Serializable
    • Class model.Desert

      class Desert extends Terrain implements Serializable
    • Class model.Diver

      class Diver extends Soldier implements Serializable
    • Class model.Entity

      class Entity extends Object implements Serializable
      • Serialized Fields

        • animObj
          Animator animObj
          The Animator of the Entity.
        • damage
          int damage
          The damage the Entity deals.
        • healthPoints
          int healthPoints
          The health of the Entity.
        • isAlive
          boolean isAlive
          Determines if the Entity is alive.
        • isAnimated
          boolean isAnimated
          Determines if the Entity is animated.
        • maxHealthPoints
          int maxHealthPoints
          The maximum health of the Entity.
        • owner
          Player owner
          The owner of the Entity.
        • position
          Point position
          The position of the Entity.
        • range
          int range
          The attack range of the Entity.
        • side
          Sides side
          Determines which side the Entity belongs to.
        • size
          Dimension size
          The size of the Entity.
        • type
          Types type
          The type of Entity.
        • value
          int value
          The cost of the Entity.
    • Class model.Game

      class Game extends Object implements Serializable
      • Serialized Fields

        • database
          Database database
          The Database of the game.
        • gameState
          GameState gameState
          The GameState of the game.
        • map
          Map map
          Local Map of the game.
    • Class model.GameState

      class GameState extends Object implements Serializable
      • Serialized Fields

        • currentPlayer
          Player currentPlayer
          The current Player.
        • database
          Database database
          DB reference.
        • elapsedTime
          int elapsedTime
          The elapsed time in seconds.
        • elapsedTimer
          Timer elapsedTimer
          Timer to increment elapsedTime.
        • fps
          int fps
          Frames per second.
        • isEnded
          boolean isEnded
          Checks if the game is ended.
        • pathVisualization
          boolean pathVisualization
          If the path visualization is enabled.
        • playerNumber
          int playerNumber
          The current Player's number.
        • players
          ArrayList<Player> players
          ArrayList containing the Players.
        • prevTime
          long prevTime
          The previous time
        • roundState
          RoundState roundState
          The current round phase.
        • startTime
          long startTime
          The start time of the game.
    • Class model.Kamikaze

      class Kamikaze extends Soldier implements Serializable
      • Serialized Fields

        • towerTargets
          ArrayList<Tower> towerTargets
          The towers the Kamikaze can target.
    • Class model.Map

      class Map extends Object implements Serializable
      • Serialized Fields

        • name
          String name
          The name of the map.
        • tiles
          Terrain[][] tiles
          The tiles of the map.
    • Class model.Mountain

      class Mountain extends Terrain implements Serializable
    • Class model.Pathfinder

      class Pathfinder extends Object implements Serializable
      • Serialized Fields

        • distance
          int[][] distance
          The distance from the start to the end.
        • graph
          int[][] graph
          The graph of routes.
        • horizontalDirections
          int[] horizontalDirections
          The horizontal directions.
        • verticalDirections
          int[] verticalDirections
          The vertical directions.
        • wayPoint
          Point wayPoint
          The waypoint to factor in.
        • xLength
          int xLength
          The width of the map
        • yLength
          int yLength
          The height of the map
    • Class model.Plains

      class Plains extends Terrain implements Serializable
    • Class model.Player

      class Player extends Object implements Serializable
      • Serialized Fields

        • entities
          ArrayList<Entity> entities
          ArrayList containing the player's entities.
        • gold
          int gold
          The player's gold amount.
        • isUnitRestricted
          boolean isUnitRestricted
          Determines if the Player has unlocked all units.
        • name
          String name
          The player's name.
        • playerNumber
          int playerNumber
          The player's number.
        • side
          Sides side
          The side of the player.
        • soldierCount
          int soldierCount
          The soldier count of the player.
    • Class model.Shotgun

      class Shotgun extends Tower implements Serializable
    • Class model.Sniper

      class Sniper extends Tower implements Serializable
    • Class model.Soldier

      class Soldier extends Entity implements Serializable
      • Serialized Fields

        • castleParts
          ArrayList<Point> castleParts
          The location of the enemy Castle's Tile locations.
        • isTargeted
          boolean isTargeted
          Is soldier targeted
        • path
          ArrayList<Point> path
          An ArrayList containing the path of the Solider to the enemy Castle.
        • pathfinder
          Pathfinder pathfinder
          The soldier's pathfinder
        • speed
          double speed
          The current speed of the Soldier.
        • target
          Entity target
          The Soldier's target Entity.
        • terrains
          ArrayList<Types> terrains
          An ArrayList which contains which tiles the Solider can cross.
        • visualizationEnd
          int visualizationEnd
          The end of visualization highlighting.
        • visualizationStart
          int visualizationStart
          The start of visualization highlighting.
        • wayPoints
          ArrayList<Point> wayPoints
          The soldier's waypoints.
    • Class model.Swamp

      class Swamp extends Terrain implements Serializable
    • Class model.Terrain

      class Terrain extends Object implements Serializable
      • Serialized Fields

        • entities
          ArrayList<Entity> entities
          An ArrayList of Entities on the tile.
        • speedMod
          int speedMod
          The speed modifier of the tile.
        • tileVersion
          int tileVersion
          The version of the tile.
        • type
          Types type
          The type of the tile.
    • Class model.Tower

      class Tower extends Building implements Serializable
      • Serialized Fields

        • attackSpeed
          int attackSpeed
          The Tower's attacking speed.
        • canAttack
          boolean canAttack
          Determines if the Tower can attack.
        • level
          int level
          The level of the Tower.
        • range
          int range
          The attack range of the Tower.
        • targetCount
          int targetCount
          The maximum amount of targets the Tower can attack at once.
        • targets
          ArrayList<Soldier> targets
          The targets of the Tower in an ArrayList.
        • targetsPerAttack
          int targetsPerAttack
          The amount of targets the Tower can attack at once.
  • Package persistence

  • Package view

    • Class view.ControlPanel

      class ControlPanel extends JPanel implements Serializable
      • Serialized Fields

        • backgroundColor
          Color backgroundColor
          The background color of the panel.
        • borderColor
          Color borderColor
          The border color of the panel.
        • buttons
          JRoundedButton[] buttons
          The buttons in the panel.
        • game
          Game game
          Game dependency.
        • gridBagLayout
          GridBagLayout gridBagLayout
          GridBagLayout for panels.
        • innerPanel
          JPanel innerPanel
          The inner panel of the panel.
    • Class view.GameField

      class GameField extends GameFieldRenderer implements Serializable
      • Serialized Fields

        • deleteState
          boolean deleteState
          Determines if delete mode is on.
        • gameFieldModel
          GameFieldModel gameFieldModel
          Model of the GameField.
        • inverted
          boolean inverted
          Determines if the selection is inverted.
        • refreshTimer
          Timer refreshTimer
          Timer to refresh the game field.
        • type
          Types type
          The selection type.
    • Class view.GameFieldRenderer

      class GameFieldRenderer extends JPanel implements Serializable
      • Serialized Fields

        • bevelCount
          int bevelCount
          The count of bevel when drawing beveled lines.
        • controlPanel
          ControlPanel controlPanel
          ControlPanel component.
        • game
          Game game
          The Game dependency.
        • hamburgerMenu
          HamburgerMenu hamburgerMenu
          HamburgerMenu component.
        • mapRef
          Map mapRef
          Reference to a Map instance.
        • middleText
          String middleText
          Text field 1 on the HUD.
        • resolutionState
          int resolutionState
          Index of current resolution.
        • selection
          Entity selection
          The selected Entity.
        • sideText
          String sideText
          Text field 2 on the HUD.
        • textureHolders
          Map<String,Map<String,BufferedImage>> textureHolders
          Texture indexer.
        • texturesOn
          boolean texturesOn
          If the textures are on or off.
        • xLength
          int xLength
          The height of the panel.
        • yLength
          int yLength
          The width of the panel.
    • Class view.HallOfFame

      class HallOfFame extends JDialog implements Serializable
    • Class view.HamburgerMenu

      class HamburgerMenu extends JPanel implements Serializable
      • Serialized Fields

        • bgColor
          Color bgColor
          The background color of the menu.
        • BUTTON_COUNT
          int BUTTON_COUNT
          The number of items in the menu.
        • buttons
          JRoundedButton[] buttons
          The buttons of the menu.
        • frame
          JFrame frame
          The frame of the menu.
        • isOpened
          boolean isOpened
          Determines if the menu is opened.
    • Class view.JRoundedButton

      class JRoundedButton extends JButton implements Serializable
      • Serialized Fields

        • arcHeight
          int arcHeight
          The arc height of the button.
        • arcWidth
          int arcWidth
          The arc width of the button.
        • enabled_bgColor
          Color enabled_bgColor
          The enabled background color of the button.
        • notEnabled_bgColor
          Color notEnabled_bgColor
          The disabled background color of the button.
        • selectedColor
          Color selectedColor
          The selected state color of the button.
        • text
          String text
          The text of the button.
    • Class view.MainMenu

      class MainMenu extends JPanel implements Serializable
      • Serialized Fields

        • background
          BufferedImage background
          The background image of the panel.
        • map
          Pair<Map,File> map
          The loaded Map instance.
        • mapName
          String mapName
          The default map name.
        • mapNameLabel
          JLabel mapNameLabel
          The label to the loaded map's name.
        • p1Name
          String p1Name
          The name of player 1.
        • p2Name
          String p2Name
          The name of player 2.
        • playersLabel
          JLabel playersLabel
          The label to show the player names.
    • Class view.MapEditorView

      class MapEditorView extends GameField implements Serializable
      • Serialized Fields

        • mapEditorModel
          MapEditorModel mapEditorModel
          MapEditorModel for logics