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

GBE::GActiveElementInfluence Class Reference

Active element influences causes all elements in the affected area to be in-memory and executed. More...

#include <GActiveElementInfluence.h>

Inheritance diagram for GBE::GActiveElementInfluence:

Inheritance graph
[legend]
Collaboration diagram for GBE::GActiveElementInfluence:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GActiveElementInfluence (const GCS::GElementID &source, const GCS::GEnergy &energy, const GCS::GVector3 &position, const GCS::GVector3 &rotation, double radius, const GCS::GElementID &parent, double sense_radius, double sense_radius_detail)
virtual ~GActiveElementInfluence ()
double senseRadius () const
double senseRadiusDetail () const

Protected Attributes

double SenseRadius
double SenseRadiusDetail

Detailed Description

Active element influences causes all elements in the affected area to be in-memory and executed.

Author:
Raphael Langerhorst
Active elements can either be completely intelligent agent driven or controlled by users. Every element that plays an "active" role in the universe, like users of the system, should radiate this kind of influence because it is used by the dynamic world generation framework to determine which parts (or elements) of the universe have to be kept in memory and executed.

This influence inherits GPositionalInfluence in order to allow easy calculation of the area center since position and parent (element context) are known.


Constructor & Destructor Documentation

GBE::GActiveElementInfluence::GActiveElementInfluence const GCS::GElementID source,
const GCS::GEnergy energy,
const GCS::GVector3 position,
const GCS::GVector3 rotation,
double  radius,
const GCS::GElementID parent,
double  sense_radius,
double  sense_radius_detail
 

Constructor.

GBE::GActiveElementInfluence::~GActiveElementInfluence  )  [virtual]
 

Destructor.


Member Function Documentation

double GBE::GActiveElementInfluence::senseRadius  )  const
 

Returns:
the sense radius of the influence source.


Member Data Documentation

double GBE::GActiveElementInfluence::SenseRadius [protected]
 

Determines the area size around the influence source which has to be kept active by the system.

double GBE::GActiveElementInfluence::SenseRadiusDetail [protected]
 

Determines the area size around the influence source which has to be kept active by the system even if the receiving element is one the same hierarchy level, e.g. looking into a house from outside or onto the planet surface from space (=without having entered the planet or house).


The documentation for this class was generated from the following files:
Generated on Thu Oct 21 21:18:05 2004 for G System by doxygen 1.3.6