Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

Session Class Reference

Collaboration diagram for Session:

Collaboration graph
[legend]

Detailed Description

Author:
Gabor Torok


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 ItemnewItem (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 ()
MapgetMap ()
Board * getBoard ()
Party * getParty ()
UserConfiguration * getUserConfiguration ()
int getCreatureCount ()
Creature * getCreature (int index)
int getItemCount ()
ItemgetItem (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 ()


Constructor & Destructor Documentation

Session::Session GameAdapter *  adapter  ) 
 

Author:
Gabor Torok


Member Function Documentation

Creature * Session::getClosestVisibleMonster int  x,
int  y,
int  w,
int  h,
int  radius
[virtual]
 

Return the closest live player within the given radius or null if none can be found.

Creature * Session::newCreature Monster *  monster,
GLShape *  shape
[virtual]
 

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.

Parameters:
monster the monster template to use for the new creature.
Returns:
the creature created.

Item * Session::newItem RpgItem *  rpgItem,
int  level = 1,
Spell *  spell = NULL,
bool  loading = false
[virtual]
 

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.

Parameters:
rpgItem if not NULL, the RpgItem template for the item to create.
spell if not NULL, the spell to associate with the created scroll.
Returns:
the item created.


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 21:50:55 2005 for scourge by  doxygen 1.4.0