Package structure

From SemanticLab

Jump to: navigation, search

Mölltal packages

The game classes are organized in the following packages:

  at.ac.wu.moelltal.driver - game management classes (plugin initialization, game field, etc.)
  at.ac.wu.moelltal.driver.data - data files (game map, ...)
  at.ac.wu.moelltal.driver.gui - GUI classes (user interface, dialogs, ...)
  at.ac.wu.moelltal.driver.interfaces - important interfaces (Trade, ...)
  at.ac.wu.moelltal.plugin.* - plug-ins
  at.ac.wu.moelltal.plugin.examples - example plug-ins

Important Classes

  1. Manager - main class; controls the game, detects and initializes game plug-ins
  2. Area - the game area
  3. GameCharacter - superclass of all Characters.
  4. GameObject - superclass of all Objects
  5. Inventory - an inventory class :)
  6. Item - superclass for all game items (objects which do not live)
  7. Tile - a single game-tile
  8. Util - utils and helper functions


Important Interfaces

  1. Actor - heartbeat class which calls the act method every 0.5 seconds; implemented by all "living" things in the game.
  2. CanFight - required for participating in a battle
  3. Container - allows classes to contain other classes (for instance a bag containing its content)
  4. HasInventory - classes implementing this interface contain an inventory.
  5. TileAccess - controls which tiles a GameCharacter may enter
  6. TileCallBack - defines actions (=call back functions) to be called ones a GameCharacter enters a Tile
Personal tools