
Public Member Functions | |
| Session (GameAdapter *adapter) | |
| void | initialize () |
| virtual void | start () |
| virtual void | quit (int value) |
| virtual void | runClient (char *host, int port, char *userName) |
| virtual void | runServer (int port) |
| virtual Server * | getServer () |
| virtual Client * | getClient () |
| virtual void | startServer (GameStateHandler *gsh, int port) |
| virtual void | startClient (GameStateHandler *gsh, CommandInterpreter *ci, char *host, int port, char *username) |
| virtual void | stopClientServer () |
| virtual Item * | newItem (RpgItem *rpgItem, int level=1, Spell *spell=NULL, bool loading=false) |
| Creat a new item for use on this story. | |
| virtual Creature * | newCreature (Monster *monster, GLShape *shape) |
| Create a new creature for use on this story. | |
| virtual void | deleteCreaturesAndItems (bool missionItemsOnly=false) |
| bool | isMultiPlayerGame () |
| void | setMultiPlayerGame (bool b) |
| GameAdapter * | getGameAdapter () |
| ShapePalette * | getShapePalette () |
| Map * | getMap () |
| Board * | getBoard () |
| Party * | getParty () |
| UserConfiguration * | getUserConfiguration () |
| int | getCreatureCount () |
| Creature * | getCreature (int index) |
| int | getItemCount () |
| Item * | getItem (int index) |
| Mission * | getCurrentMission () |
| void | setCurrentMission (Mission *mission) |
| void | playSound (const char *sound) |
| virtual Creature * | getClosestVisibleMonster (int x, int y, int w, int h, int radius) |
| Return the closest live player within the given radius or null if none can be found. | |
| virtual void | creatureDeath (Creature *creature) |
Protected Member Functions | |
| virtual void | initData () |
|
|
|
|
||||||||||||||||||||||||
|
Return the closest live player within the given radius or null if none can be found.
|
|
||||||||||||
|
Create a new creature for use on this story. Calling this method instead of new Creature() directly ensures that the creature will be cleaned up properly when the story is exited.
|
|
||||||||||||||||||||
|
Creat a new item for use on this story. Calling this method instead of new Item() directly ensures that the item will be cleaned up properly when the story is exited. Only items in a party member's inventory are not deleted.
|
1.4.0