CAIObjectType Class
The structure used for this class is CAIObjectType
Quick Ref |
void CAIObjectType::CAIObjectType(unsigned char EnemyAlly, unsigned char General, unsigned char Race, unsigned char Class, unsigned char Specifics, unsigned char Gender, unsigned char Alignment, long Instance) |
void CAIObjectType::CAIObjectType(unsigned char EnemyAlly, unsigned char General, unsigned char Race, unsigned char Class, unsigned char Specifics, unsigned char Gender, unsigned char Alignment, long Instance, const unsigned char* SpecialCase, CString& name) |
void CAIObjectType::Decode(CGameAIBase* caller) |
void CAIObjectType::GetActiveInactiveClasses(unsigned char& nActiveClass, unsigned char& nInactiveClass) |
unsigned char CAIObjectType::GetClass() |
CAIObjectType CAIObjectType::GetEnemyOf() |
CGameObject* CAIObjectType::GetShare(CGameAIBase* caller, int checkBackList) |
CGameObject* CAIObjectType::GetShareType(CGameAIBase* caller, unsigned char type, int checkBackList) |
int CAIObjectType::IsAllyOf(CAIObjectType& type) |
int CAIObjectType::IsEnemyOf(CAIObjectType& type) |
int CAIObjectType::IsUsableSubClass(unsigned char nSubClass, int bAsync) |
int CAIObjectType::Match(CAIObjectType& y) |
unsigned char CAIObjectType::OfType(CAIObjectType* type, int checkForNonSprites, int noNonSprites, int deathMatchAllowance) |
void CAIObjectType::Read(CString data) |
void CAIObjectType::Set(CAIObjectType& type) |
void CAIObjectType::SetSpecialCase(unsigned char* temp) |
CAIObjectType& CAIObjectType::operator=(CAIObjectType& y) |
int CAIObjectType::operator==(CAIObjectType& y) |
Constructors
Name |
Description |
Constructs a |
CAIObjectType::CAIObjectType
Constructs a CAIObjectType object
void CAIObjectType::CAIObjectType(
unsigned char EnemyAlly,
unsigned char General,
unsigned char Race,
unsigned char Class,
unsigned char Specifics,
unsigned char Gender,
unsigned char Alignment,
long Instance);
Parameters
unsigned charEnemyAlly - * *unsigned charGeneral - * *unsigned charRace - * *unsigned charClass - * *unsigned charSpecifics - * *unsigned charGender - * *unsigned charAlignment - * *longInstance - * *
Remarks
Constructs a CAIObjectType object
CAIObjectType::CAIObjectType
Constructs a CAIObjectType object
void CAIObjectType::CAIObjectType(
unsigned char EnemyAlly,
unsigned char General,
unsigned char Race,
unsigned char Class,
unsigned char Specifics,
unsigned char Gender,
unsigned char Alignment,
long Instance,
const unsigned char* SpecialCase,
CString& name);
Parameters
unsigned charEnemyAlly - * *unsigned charGeneral - * *unsigned charRace - * *unsigned charClass - * *unsigned charSpecifics - * *unsigned charGender - * *unsigned charAlignment - * *longInstance - * *const unsigned char*SpecialCase - * *CString& name - * *
Remarks
Constructs a CAIObjectType object
Methods
Name |
Description |
CAIObjectType::Decode
Decode CAIObjectType
void CAIObjectType::Decode(CGameAIBase* caller);
Parameters
CGameAIBase* caller -
Remarks
CAIObjectType::GetActiveInactiveClasses
Gets active and inactive classes
void CAIObjectType::GetActiveInactiveClasses(
unsigned char& nActiveClass,
unsigned char& nInactiveClass) ;
Parameters
unsigned char& nActiveClass -unsigned char& nInactiveClass -
Remarks
CAIObjectType::GetClass
Get class
unsigned char CAIObjectType::GetClass();
Return Value
unsigned char
Remarks
CAIObjectType::GetEnemyOf
CAIObjectType CAIObjectType::GetEnemyOf();
Return Value
Remarks
CAIObjectType::IsAllyOf
int CAIObjectType::IsAllyOf(CAIObjectType& type);
Parameters
CAIObjectType& type -
Return Value
int
Remarks
CAIObjectType::IsEnemyOf
int CAIObjectType::IsEnemyOf(CAIObjectType& type);
Parameters
CAIObjectType& type -
Return Value
int
Remarks
CAIObjectType::IsUsableSubClass
int CAIObjectType::IsUsableSubClass(
unsigned char nSubClass,
int bAsync);
Parameters
unsigned charnSubClass -intbAsync - asynchronous or synchronous
Return Value
int
Remarks
CAIObjectType::Match
int CAIObjectType::Match(CAIObjectType& y);
Parameters
CAIObjectType& y -
Return Value
int
Remarks
CAIObjectType::OfType
unsigned char CAIObjectType::OfType(
CAIObjectType* type,
int checkForNonSprites,
int noNonSprites,
int deathMatchAllowance);
Parameters
CAIObjectType* type - * *
intcheckForNonSprites -intnoNonSprites -intdeathMatchAllowance -
Return Value
unsigned char
Remarks
CAIObjectType::Read
void CAIObjectType::Read(CString data);
Parameters
CString data - string containing data to read
Remarks
CAIObjectType::Set
void CAIObjectType::Set(CAIObjectType& type);
Parameters
CAIObjectType& type - type to set object as
Remarks
CAIObjectType::SetSpecialCase
void CAIObjectType::SetSpecialCase(unsigned char* temp);
Parameters
unsigned char*temp -
Remarks
Operators
Name |
Description |
Assign a new value to a CAIObjectType object |
|
Determines if two values are equal |
CAIObjectType::operator=
Assign y to a CAIObjectType object
CAIObjectType& CAIObjectType::operator=(CAIObjectType& y);
Parameters
CAIObjectType& y - the new value to assign
Return Value
Remarks
CAIObjectType::operator==
Logical comparison equals operator
int CAIObjectType::operator==(CAIObjectType& y);
Parameters
CAIObjectType& y - the value to be compared
Return Value
int
Remarks