Cavestory Mod API
Public Member Functions | Public Attributes | Friends | List of all members
CaveNet::DataStructures::AI_Brain Class Reference

AI Player's brain. More...

#include <CaveNet_ExportedTypes.h>

Public Member Functions

 AI_Brain ()
 Constructor.
 
 ~AI_Brain ()
 Deconstructor.
 
AI_ActionBaseAddAction (AI_ActionBase *pAction)
 Add an action to the queue.
 
void NotifyOfClientDeletion (CaveNet::DataStructures::NetClient *pClient)
 Notify this brain of pointer deletion. More...
 
void NotifyOfPlayerDeletion (CaveNet::DataStructures::NetPlayer *pPlayer)
 Notify this brain of pointer deletion. More...
 
void Think ()
 Think for this bot.
 
int Tick ()
 Tick this bot for one frame.
 

Public Attributes

void(* m_OnCleanup )(AI_Brain *pBrain)
 
CaveNet::DataStructures::NetPlayerfocus_1
 ...
 
CaveNet::DataStructures::NetPlayerfocus_2
 ...
 
CaveNet::DataStructures::NetPlayerfocus_3
 ...
 
CaveNet::DataStructures::NetPlayerfocus_4
 ...
 
NPCHARtarget_1
 ...
 
NPCHARtarget_2
 ...
 
NPCHARtarget_3
 ...
 
NPCHARtarget_4
 ...
 
void * ptr_1
 ...
 
void * ptr_2
 ...
 
void * ptr_3
 ...
 
void * ptr_4
 ...
 
int act_no
 ...
 
int act_wait
 ...
 
int count1
 ...
 
int count2
 ...
 
int count3
 ...
 
int count4
 ...
 
int count5
 ...
 
int count6
 ...
 
int count7
 ...
 
int count8
 ...
 
int count9
 ...
 
int count10
 ...
 
int count11
 ...
 
int count12
 ...
 
int count13
 ...
 
int count14
 ...
 
int count15
 ...
 
int timer_1
 ...
 
int timer_2
 ...
 
int tgt_x
 ...
 
int tgt_y
 ...
 
int start_time
 ...
 
void * m_CustomVarList [32]
 ...
 
List< AI_ActionBase * > m_ActionQueue
 The action queue for this brain.
 
NetPlayerm_Player
 The player attached to this brain.
 
int m_SelectedWeapon
 Selected weapon.
 

Friends

class NetPlayer
 

Detailed Description

AI Player's brain.

Member Function Documentation

◆ NotifyOfClientDeletion()

void CaveNet::DataStructures::AI_Brain::NotifyOfClientDeletion ( CaveNet::DataStructures::NetClient pClient)

Notify this brain of pointer deletion.

Parameters
pClientThe client being deleted.

◆ NotifyOfPlayerDeletion()

void CaveNet::DataStructures::AI_Brain::NotifyOfPlayerDeletion ( CaveNet::DataStructures::NetPlayer pPlayer)

Notify this brain of pointer deletion.

Parameters
pClientThe server being deleted.

The documentation for this class was generated from the following file: