Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

World Class Reference

#include <World.h>

Inheritance diagram for World:

Simulator IunctusSimulator PacSimulator SpherusSimulator List of all members.

Public Member Functions

Public Attributes


Detailed Description

A world is a dynamic system that is updated in discrete time and can be graphically illustrated. This class provides just an interface, and implements interaction through mouse events.

Definition at line 14 of file World.h.


Constructor & Destructor Documentation

World::World  ) 
 

Definition at line 12 of file World.cpp.

World::~World  )  [virtual]
 

Definition at line 15 of file World.cpp.


Member Function Documentation

virtual void World::advanceTime  )  [pure virtual]
 

Implemented in Simulator.

Referenced by SimulatorThread::Entry(), and SimulatorThread::step().

void World::draw GUI gui  )  [virtual]
 

Reimplemented in Simulator.

Definition at line 18 of file World.cpp.

References GUI::outTextStatusBar(), and timeStep.

Referenced by Simulator::draw(), and ThyrixMainFrame::paintDC().

virtual double World::getDt  )  const [inline, virtual]
 

Reimplemented in Simulator.

Definition at line 19 of file World.h.

Referenced by SimulatorThread::Entry().

virtual void World::onMouseLeftDown float  x,
float  y
[inline, virtual]
 

Reimplemented in Simulator.

Definition at line 36 of file World.h.

Referenced by ThyrixMainFrame::onLeftDown(), and Simulator::onMouseLeftDown().

virtual void World::onMouseLeftUp float  x,
float  y
[inline, virtual]
 

Reimplemented in Simulator.

Definition at line 46 of file World.h.

Referenced by ThyrixMainFrame::onLeftUp(), and Simulator::onMouseLeftUp().

virtual void World::onMouseRightDown float  x,
float  y
[inline, virtual]
 

Definition at line 41 of file World.h.

Referenced by ThyrixMainFrame::onRightDown().

virtual void World::onMouseRightUp float  x,
float  y
[inline, virtual]
 

Definition at line 51 of file World.h.

Referenced by ThyrixMainFrame::onRightUp().

virtual void World::setMouseCoordinates float  x,
float  y
[inline, virtual]
 

Definition at line 31 of file World.h.

Referenced by ThyrixMainFrame::onMotion().


Member Data Documentation

bool World::isLeftMouseButtonPressed
 

Definition at line 29 of file World.h.

bool World::isRightMouseButtonPressed
 

This may be used for sending custom events.

Definition at line 28 of file World.h.

float World::mouseX
 

Coordinates, in world space, of the position of the mouse.

Definition at line 26 of file World.h.

float World::mouseY
 

Coordinates, in world space, of the position of the mouse.

Definition at line 26 of file World.h.

unsigned long int World::timeStep
 

Definition at line 56 of file World.h.

Referenced by draw().


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005