Package structure
From SemanticLab
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
- Manager - main class; controls the game, detects and initializes game plug-ins
- Area - the game area
- GameCharacter - superclass of all Characters.
- GameObject - superclass of all Objects
- Inventory - an inventory class :)
- Item - superclass for all game items (objects which do not live)
- Tile - a single game-tile
- Util - utils and helper functions
Important Interfaces
- Actor - heartbeat class which calls the
actmethod every 0.5 seconds; implemented by all "living" things in the game. - CanFight - required for participating in a battle
- Container - allows classes to contain other classes (for instance a bag containing its content)
- HasInventory - classes implementing this interface contain an inventory.
- TileAccess - controls which tiles a
GameCharactermay enter - TileCallBack - defines actions (=call back functions) to be called ones a
GameCharacterenters aTile

