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

CAIObjectType::CAIObjectType

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);

Parameters

  • unsigned char EnemyAlly - * *

  • unsigned char General - * *

  • unsigned char Race - * *

  • unsigned char Class - * *

  • unsigned char Specifics - * *

  • unsigned char Gender - * *

  • unsigned char Alignment - * *

  • long Instance - * *

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 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 - * *

Remarks

Constructs a CAIObjectType object


Methods

Name

Description

CAIObjectType::Decode

CAIObjectType::GetActiveInactiveClasses

CAIObjectType::GetClass

CAIObjectType::GetEnemyOf

CAIObjectType::GetShare

CAIObjectType::GetShareType

CAIObjectType::IsAllyOf

CAIObjectType::IsEnemyOf

CAIObjectType::IsUsableSubClass

CAIObjectType::Match

CAIObjectType::OfType

CAIObjectType::Read

CAIObjectType::Set

CAIObjectType::SetSpecialCase

CAIObjectType::Decode

Decode CAIObjectType

void CAIObjectType::Decode(CGameAIBase* caller);

Parameters

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

CAIObjectType

Remarks


CAIObjectType::GetShare

CGameObject* CAIObjectType::GetShare(
   CGameAIBase* caller,
   int checkBackList);

Parameters

Return Value

Returns a pointer to CGameObject

Remarks


CAIObjectType::GetShareType

CGameObject<CGameObject>* CAIObjectType::GetShareType(
   CGameAIBase* caller,
   unsigned char type,
   int checkBackList);

Parameters

  • CGameAIBase* caller -

  • unsigned char type -

  • int checkBackList -

Return Value

Returns a pointer to CGameObject

Remarks


CAIObjectType::IsAllyOf

int CAIObjectType::IsAllyOf(CAIObjectType& type);

Parameters

Return Value

int

Remarks


CAIObjectType::IsEnemyOf

int CAIObjectType::IsEnemyOf(CAIObjectType& type);

Parameters

Return Value

int

Remarks


CAIObjectType::IsUsableSubClass

int CAIObjectType::IsUsableSubClass(
   unsigned char nSubClass,
   int bAsync);

Parameters

  • unsigned char nSubClass -

  • int bAsync - asynchronous or synchronous

Return Value

int

Remarks


CAIObjectType::Match

int CAIObjectType::Match(CAIObjectType& y);

Parameters

Return Value

int

Remarks


CAIObjectType::OfType

unsigned char CAIObjectType::OfType(
   CAIObjectType* type,
   int checkForNonSprites,
   int noNonSprites,
   int deathMatchAllowance);

Parameters

  • CAIObjectType* type - * *

  • int checkForNonSprites -

  • int noNonSprites -

  • int deathMatchAllowance -

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

Remarks


CAIObjectType::SetSpecialCase

void CAIObjectType::SetSpecialCase(unsigned char* temp);

Parameters

  • unsigned char* temp -

Remarks


Operators

Name

Description

CAIObjectType::operator=

Assign a new value to a CAIObjectType object

CAIObjectType::operator==

Determines if two values are equal

CAIObjectType::operator=

Assign y to a CAIObjectType object

CAIObjectType& CAIObjectType::operator=(CAIObjectType& y);

Parameters

Return Value

CAIObjectType&

Remarks


CAIObjectType::operator==

Logical comparison equals operator

int CAIObjectType::operator==(CAIObjectType& y);

Parameters

Return Value

int

Remarks