#include <cObject.h>
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. |
Encapsulates social behavior related attributes (merge with entity?).