Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

World Class Reference

#include <World.h>

Inheritance diagram for World:

[legend]
Collaboration diagram for World:
[legend]
List of all members.

Public Methods

 World ()
 World (TCPsocket st, SDLNet_SocketSet s)
virtual ~World ()
virtual void draw ()
virtual void update (SDL_Event event)
Terrain * getTerrain ()
vector< Actor * > getAllActors ()
void addHuman (string s)
void keyPressed (unsigned char c)
void removeKeyPress ()

Protected Methods

void init ()
Object * checkCollision (Vector3 position, double radius=0.0)

Protected Attributes

BackgroundMusic * _bm
Camera * _camera
Hud * _hud
SkyBox * _skyBox
Terrain * _terrain
LocalWorld * _currentTerrain
Actor * _mainCharacter
vector< Actor * > _actors
bool _inAction
Object * _actionObject
vector< string > _actions
TCPsocket _socket
SDLNet_SocketSet _set
bool _isOnline
bool _chatting
bool _inInventory
InventoryScreen * _inventoryScreen

Detailed Description

Holds all objects located in the world

author: Line72: dillavou@uab.edu


Constructor & Destructor Documentation

World::World (    ) 
 

World::World (  TCPsocket    st,
SDLNet_SocketSet    s
) 
 

World::~World (    )  [virtual]
 


Member Function Documentation

void World::addHuman (  string    s ) 
 

Object * World::checkCollision (  Vector3    position,
double    radius = 0.0
)  [protected]
 

void World::draw (    )  [virtual]
 

Reimplemented from Object.

vector< Actor * > World::getAllActors (    )  [inline]
 

Terrain* World::getTerrain (    )  [inline]
 

void World::init (    )  [protected]
 

void World::keyPressed (  unsigned char    c )  [inline]
 

void World::removeKeyPress (    )  [inline]
 

void World::update (  SDL_Event    event )  [virtual]
 

Checks for movements and updates the main character


Member Data Documentation

Object* World::_actionObject [protected]
 

vector< string > World::_actions [protected]
 

vector< Actor * > World::_actors [protected]
 

BackgroundMusic* World::_bm [protected]
 

Camera* World::_camera [protected]
 

bool World::_chatting [protected]
 

LocalWorld* World::_currentTerrain [protected]
 

Hud* World::_hud [protected]
 

bool World::_inAction [protected]
 

bool World::_inInventory [protected]
 

InventoryScreen* World::_inventoryScreen [protected]
 

bool World::_isOnline [protected]
 

Actor* World::_mainCharacter [protected]
 

SDLNet_SocketSet World::_set [protected]
 

SkyBox* World::_skyBox [protected]
 

TCPsocket World::_socket [protected]
 

Terrain* World::_terrain [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:14 2004 for naturecalls by doxygen1.2.18