2 #ifndef WORLDSIM_SOCIAL_HPP 3 #define WORLDSIM_SOCIAL_HPP 24 #include <Math/WrappingUChar.cpp> 36 unsigned char _compatibility);
50 WrappingUChar personality;
51 WrappingUChar desiredPersonality;
52 Vector<Relationship> vFamily;
53 Vector<Relationship> vAcquaintance;
54 Vector<Relationship> vFriend;
55 Vector<Relationship> vEnemy;
69 unsigned char compatibilityWith(
Social* social);
70 unsigned char compatibilityWith(
Social& social);
71 WrappingUChar getPersonality();
72 WrappingUChar getDesiredPersonality();
74 void setCompatibility(
unsigned char _compatibility);
75 void setCompatibility(
unsigned char _compatibility,
unsigned char _desiredPersonality);
76 void setCompatibility(
Social* compatible);
77 void setCompatibility(
Social& compatible);
79 void setFullyCompatible(
Social * compatible);
80 void setFullyCompatible(
Social & compatible);
84 int getWorstFriendSlot();
86 int getWorstAcquaintanceSlot();
96 void updateLists(
int maxFriends);
100 Vector<Relationship>& getAcquaintances();
105 #endif // WORLDSIM_SOCIAL_HPP friend std::ostream & operator<<(std::ostream &os, const Relationship &r)
cout
Definition: Social.cpp:29
Character * destinationCharacter
Definition: Social.hpp:31
Definition: Social.hpp:27
bool operator==(Relationship &other)
Definition: Social.cpp:13
unsigned char compatibility
Definition: Social.hpp:33
Definition: Character.hpp:38
Relationship(Character *_sourceCharacter, Character *_destinationCharacter, char _relationshipLevel, unsigned char _compatibility)
Definition: Social.cpp:7
Character * sourceCharacter
Definition: Social.hpp:30
char relationshipLevel
Definition: Social.hpp:32
bool operator<(Relationship &other)
Definition: Social.cpp:23
bool operator>(Relationship &other)
Definition: Social.cpp:18
Definition: Social.hpp:47