World Class Reference

#include <World.h>

List of all members.

Public Member Functions

 World (Game *game, Physics *physics)
 ~World ()
void update (const float timeStep)
bool testInboundXZ (const Vec3 position)
void addLight (const char *name, const float px, const float py, const float pz, const float rx, const float ry, const float rz, const int length, const int fov, const int shadowCount, const float r, const float g, const float b)

Detailed Description

World provides both a graphical and physical model of a hilly landscape, upon the Player and Enemy objects can move. While gravitation affects all models that are set upon this world, this world prevents by its physical model that other physical entities would fall trough it. Also the lighting environment is setup here as well.

This class provides furthermore a set of ambient and kinematic objects that exist only for graphical representation reasons, like cars, ships etc.

Definition at line 24 of file World.h.


Constructor & Destructor Documentation

World::World ( Game game,
Physics physics 
)

Constructs the world in respect of the physics and the graphics part.

Parameters:
game the game is needed to fetch needed data like reflection textures
physics the physics is needed to submit created physics objects

Definition at line 25 of file World.cpp.

World::~World (  ) 

Definition at line 334 of file World.cpp.


Member Function Documentation

void World::addLight ( const char *  name,
const float  px,
const float  py,
const float  pz,
const float  rx,
const float  ry,
const float  rz,
const int  length,
const int  fov,
const int  shadowCount,
const float  r,
const float  g,
const float  b 
)
bool World::testInboundXZ ( const Vec3  position  ) 

checks whether the given position is inside the world.

Parameters:
position the position to be checked

Definition at line 168 of file World.cpp.

void World::update ( const float  timeStep  ) 

updates the graphics state for world entities

Parameters:
timeStep the time since the last rendering in millisecs

Definition at line 309 of file World.cpp.


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2