rSocialised Struct Reference

#include <cObject.h>

Inheritance diagram for rSocialised:
rRole

List of all members.

Public Member Functions

 rSocialised ()
 Constructor.
 rSocialised (rSocialised *original)
 Copy Constructor.
bool hasAllied (Roles role)
 Check wether an object playing a certain role is an ally.
void addAllied (Roles role)
 Add roles which allies of this object play.
void remAllied (Roles role)
 Remove objects playing a certain role from ally list.
bool hasEnemy (Roles role)
 Check wether an object playing a certain role is an enemy.
void addEnemy (Roles role)
 Add roles which enemies of this object play.
void remEnemy (Roles role)
 Remove objects playing a certain role from enemy list.

Public Attributes

std::set< OID > allies
 future: Bitmask, lists Roles which Allies have.
std::set< OID > enemies
 Bitmask, lists Roles which Enemies play.

Detailed Description

Encapsulates social behavior related attributes (merge with entity?).


The documentation for this struct was generated from the following file:
Generated on Fri Aug 27 16:01:36 2010 for Linwarrior 3D by  doxygen 1.6.3