Nuclide
Software Development Kit for id Technology (BETA)
ncBot Class Reference

About this class

A virtual multiplayer opponent.

Base class for all bots.

Inheritance diagram for ncBot:
ncActor ncClient ncSpectator ncPlayer

Public Member Functions

void ncBot (void)
 
virtual void SetState (botstate_t)
 
virtual botstate_t GetState (void)
 
virtual botpersonality_t GetPersonality (void)
 
virtual float GetForwardSpeed (void)
 Overridable: Returns the desired maximum forward movement speed. More...
 
virtual float GetSideSpeed (void)
 Overridable: Returns the desired maximum side movement speed. More...
 
virtual float GetBackSpeed (void)
 Overridable: Returns the desired maximum backwardss movement speed. More...
 
virtual void ChatSay (string)
 
virtual void ChatSayTeam (string)
 
virtual void Pain (entity, entity, int, vector, vector, int)
 Called whenever the entity receives damage. More...
 
virtual void RouteClear (void)
 When called, will wipe any memory of an ongoing route. More...
 
virtual void WeaponThink (void)
 
virtual void WeaponAttack (void)
 
virtual void SeeThink (void)
 
virtual void BrainThink (int, int)
 
virtual void RunAI (void)
 
virtual void CreateObjective (void)
 
virtual void CheckRoute (void)
 Internal use only. More...
 
virtual void BotPreFrame (void)
 
virtual void BotPostFrame (void)
 
virtual void AddedItemCallback (ncItem)
 
virtual void UseButton (void)
 
virtual void SetEnemy (entity)
 
virtual float GetRunSpeed (void)
 
virtual float GetWalkSpeed (void)
 
nonvirtual void ForceWeaponAttack (vector, float)
 
virtual void SetName (string)
 
nonvirtual void SetInfoKey (string, string)
 Server: Set the value of an InfoKey. More...
 
nonvirtual void SetInfoKeyFloat (string, float)
 Server: Floating point based version of SetInfoKey(). More...
 
nonvirtual string GetInfoKey (string)
 Get the string value of an InfoKey. More...
 
nonvirtual float GetInfoKeyFloat (string)
 Floating point based version of GetInfoKey(). More...
 

Constructor & Destructor Documentation

◆ ncBot()

void ncBot::ncBot ( void  )

Member Function Documentation

◆ AddedItemCallback()

void ncBot::AddedItemCallback ( ncItem  newItem)
virtual

Reimplemented from ncActor.

◆ BotPostFrame()

void ncBot::BotPostFrame ( void  )
virtual

◆ BotPreFrame()

void ncBot::BotPreFrame ( void  )
virtual

◆ BrainThink()

void ncBot::BrainThink ( int  enemyvisible,
int  enemydistant 
)
virtual

◆ ChatSay()

void ncBot::ChatSay ( string  msg)
virtual

◆ ChatSayTeam()

void ncBot::ChatSayTeam ( string  msg)
virtual

◆ CheckRoute()

void ncBot::CheckRoute ( void  )
virtual

Internal use only.

Called every frame to see our route progression.

Reimplemented from ncActor.

◆ CreateObjective()

void ncBot::CreateObjective ( void  )
virtual

◆ ForceWeaponAttack()

void ncBot::ForceWeaponAttack ( vector  attackPos,
float  attackTime 
)

◆ GetBackSpeed()

float ncBot::GetBackSpeed ( void  )
virtual

Overridable: Returns the desired maximum backwardss movement speed.

Reimplemented from ncActor.

Reimplemented in ncClient.

◆ GetForwardSpeed()

float ncBot::GetForwardSpeed ( void  )
virtual

Overridable: Returns the desired maximum forward movement speed.

Reimplemented from ncActor.

Reimplemented in ncClient.

◆ GetInfoKey()

string ncBot::GetInfoKey ( string  strKey)

Get the string value of an InfoKey.

◆ GetInfoKeyFloat()

float ncBot::GetInfoKeyFloat ( string  strKey)

Floating point based version of GetInfoKey().

◆ GetPersonality()

botpersonality_t ncBot::GetPersonality ( void  )
virtual

◆ GetRunSpeed()

float ncBot::GetRunSpeed ( void  )
virtual

◆ GetSideSpeed()

float ncBot::GetSideSpeed ( void  )
virtual

Overridable: Returns the desired maximum side movement speed.

Reimplemented from ncActor.

Reimplemented in ncClient.

◆ GetState()

botstate_t ncBot::GetState ( void  )
virtual

◆ GetWalkSpeed()

float ncBot::GetWalkSpeed ( void  )
virtual

◆ Pain()

void ncBot::Pain ( entity  inflictor,
entity  attacker,
int  damage,
vector  dir,
vector  absImpactPos,
int  hitBody 
)
virtual

Called whenever the entity receives damage.

Reimplemented from ncSurfacePropEntity.

◆ RouteClear()

void ncBot::RouteClear ( void  )
virtual

When called, will wipe any memory of an ongoing route.

Reimplemented from ncActor.

◆ RunAI()

void ncBot::RunAI ( void  )
virtual

◆ SeeThink()

void ncBot::SeeThink ( void  )
virtual

◆ SetEnemy()

void ncBot::SetEnemy ( entity  en)
virtual

◆ SetInfoKey()

void ncBot::SetInfoKey ( string  strKey,
string  strValue 
)

Server: Set the value of an InfoKey.

◆ SetInfoKeyFloat()

void ncBot::SetInfoKeyFloat ( string  strKey,
float  floatValue 
)

Server: Floating point based version of SetInfoKey().

◆ SetName()

void ncBot::SetName ( string  nickname)
virtual

◆ SetState()

void ncBot::SetState ( botstate_t  state)
virtual

◆ UseButton()

void ncBot::UseButton ( void  )
virtual

◆ WeaponAttack()

void ncBot::WeaponAttack ( void  )
virtual

◆ WeaponThink()

void ncBot::WeaponThink ( void  )
virtual

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