Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches
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.
 
virtual float GetSideSpeed (void)
 Overridable: Returns the desired maximum side movement speed.
 
virtual float GetBackSpeed (void)
 Overridable: Returns the desired maximum backwardss movement speed.
 
virtual void ChatSay (string)
 
virtual void ChatSayTeam (string)
 
virtual void Pain (entity, entity, int, vector, vector, int)
 Called whenever the entity receives damage.
 
virtual void RouteClear (void)
 When called, will wipe any memory of an ongoing route.
 
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)
 
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)
 

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

◆ 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.

◆ 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

◆ 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: