Package model

  • Interface Summary 
    Interface Description
    Region
    Region is an interface with methods to retrieve position and region of next region (where to send troops).
  • Class Summary 
    Class Description
    Aeroplane
    Aeroplane is a type of troop.
    AeroplaneTest  
    CrossroadRegion
    CrossroadRegion is a region type that holds three "next positions" and a method for switching between these to assign the regions actual next position.
    CrossroadTest  
    DbTest  
    DrawImage
    DrawImage draws image of next frame in AntiTowerDefence.
    EmptyRegion
    EmptyRegion is a region type that does can only be instantiated, but has no methods to that does things.
    EnterRegion
    ***** UNDER CONSTRUCTION ***** EnterRegion is a region type that holds its own position and the position as well the corresponding region of its next region, i.e.
    ExitRegion
    ***** UNDER CONSTRUCTION ****** ExitRegion is a type of region that a troop appears at if it went into a EnterRegion.
    GoalRegion
    GoalRegion represents the last region on a path.
    Highscore
    Highscore is a class that holds a score and a corresponding name (of a player).
    HighscoreDb
    HighscoreDb has methods to communicate with the database holding highscores and corresponding names.
    HighscoreTest  
    Level
    ***** CURRENTLY NOT IN USE.
    LevelState  
    LevelTest  
    LoadRegion
    LoadRegion uses Java reflections to get the region type and instantiate an object of it.
    Path
    Path has methods for reading the path specified in the XML sheet, i.e.
    PathRegion
    PathRegion is a walkable region type.
    PlayerState
    PlayerState keeps track of the players money, highscore and corresponding name.
    PlayerStateTest  
    Position
    Position is a class that represents the X and Y coordinates in map.
    PositionTest  
    ReginTest  
    Soldier
    Soldier is a type of troop that has a specific amount of health, price and speed.
    SoldierTest  
    StartRegion
    StartRegion represents the region that is placed at the beginning of a path, i.e.
    TeleporterRegion
    ***** NOT CURRENTLY IN USE *****
    TeleporterTroop
    TeleporterTroop is a special troop that can place teleporters on the map.
    Testload
    ***** FOR TESTING *****
    TestPathRegion  
    TestTeleporterRegion  
    Tower
    A tower attacks troops within its specified range with its specified attack interval and damage output.
    TowerRegion
    TowerRegion is a type of level specific region that a tower can appear at the start of each level.
    TowerTest  
    Troop
    A troop is a unit that moves on a path from start to goal region.
    XMLParser
    Level class is reads an XML file that follows a certain XML schema.