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

DALT_Client::AllowedSets Class Reference

This class gives the facility of adding contraints on what Entity types can execute certain actions on which target Entity types Each action can have an AllowedSet associated with it; that is, a set of sources - Entities that can originate an action - and a set of targets, entities on which the action can be performed. More...

#include <allowed_sets.h>

Collaboration diagram for DALT_Client::AllowedSets:

Collaboration graph
[legend]
List of all members.

Public Methods

 AllowedSets ()
 constructor; does nothing. More...

 ~AllowedSets ()
 destructor; does nothing. More...

void addPair (Pair &p)
 adds a pair to the sets vector. More...

bool canPerform (Entity *originator, Entity *target)
 tests whether the originator can perform an action on the target. More...


Public Attributes

vector<Pairsets
 all the pair sets. More...


Detailed Description

This class gives the facility of adding contraints on what Entity types can execute certain actions on which target Entity types Each action can have an AllowedSet associated with it; that is, a set of sources - Entities that can originate an action - and a set of targets, entities on which the action can be performed.

Author:
Vlad Mereuta

Definition at line 36 of file allowed_sets.h.


Constructor & Destructor Documentation

DALT_Client::AllowedSets::AllowedSets ( )
 

constructor; does nothing.

DALT_Client::AllowedSets::~AllowedSets ( )
 

destructor; does nothing.


Member Function Documentation

void DALT_Client::AllowedSets::addPair ( Pair & p )
 

adds a pair to the sets vector.

Parameters:
p  

bool DALT_Client::AllowedSets::canPerform ( Entity * originator,
Entity * target )
 

tests whether the originator can perform an action on the target.

Parameters:
originator   pointer to the Entity initiating the action
target   the object of the action
Returns:
true if there is a recorded relation in between the originator and the target; false otherwise
Parameters:
originator  
target  


Member Data Documentation

vector< Pair > DALT_Client::AllowedSets::sets
 

all the pair sets.

Definition at line 46 of file allowed_sets.h.


The documentation for this class was generated from the following file:
Generated at Thu Jan 31 15:20:18 2002 for DALT Client by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001