Nuclide
Software Development Kit for id Tech
NSBot Class Reference

A virtual multiplayer opponent. More...

#include <NSBot.h>

Inheritance diagram for NSBot:
NSActor NSClient NSClientSpectator NSClientPlayer

Public Member Functions

void NSBot (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, 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 PreFrame (void)
 
virtual void PostFrame (void)
 
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...
 

Detailed Description

A virtual multiplayer opponent.

Base class for all bots.

Constructor & Destructor Documentation

◆ NSBot()

void NSBot::NSBot ( void  )

Member Function Documentation

◆ BrainThink()

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

◆ ChatSay()

void NSBot::ChatSay ( string  msg)
virtual

◆ ChatSayTeam()

void NSBot::ChatSayTeam ( string  msg)
virtual

◆ CheckRoute()

void NSBot::CheckRoute ( void  )
virtual

Internal use only.

Called every frame to see our route progression.

Reimplemented from NSActor.

◆ CreateObjective()

void NSBot::CreateObjective ( void  )
virtual

◆ ForceWeaponAttack()

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

◆ GetBackSpeed()

float NSBot::GetBackSpeed ( void  )
virtual

Overridable: Returns the desired maximum backwardss movement speed.

Reimplemented from NSActor.

Reimplemented in NSClient.

◆ GetForwardSpeed()

float NSBot::GetForwardSpeed ( void  )
virtual

Overridable: Returns the desired maximum forward movement speed.

Reimplemented from NSActor.

Reimplemented in NSClient.

◆ GetInfoKey()

string NSBot::GetInfoKey ( string  strKey)

Get the string value of an InfoKey.

◆ GetInfoKeyFloat()

float NSBot::GetInfoKeyFloat ( string  strKey)

Floating point based version of GetInfoKey().

◆ GetPersonality()

botpersonality_t NSBot::GetPersonality ( void  )
virtual

◆ GetRunSpeed()

float NSBot::GetRunSpeed ( void  )
virtual

◆ GetSideSpeed()

float NSBot::GetSideSpeed ( void  )
virtual

Overridable: Returns the desired maximum side movement speed.

Reimplemented from NSActor.

Reimplemented in NSClient.

◆ GetState()

botstate_t NSBot::GetState ( void  )
virtual

◆ GetWalkSpeed()

float NSBot::GetWalkSpeed ( void  )
virtual

◆ Pain()

void NSBot::Pain ( entity  inflictor,
entity  attacker,
int  damage,
vector  dir,
int  location 
)
virtual

Called whenever the entity receives damage.

Reimplemented from NSSurfacePropEntity.

◆ PostFrame()

void NSBot::PostFrame ( void  )
virtual

Reimplemented in NSClient, NSClientPlayer, and NSClientSpectator.

◆ PreFrame()

void NSBot::PreFrame ( void  )
virtual

Reimplemented in NSClient, NSClientPlayer, and NSClientSpectator.

◆ RouteClear()

void NSBot::RouteClear ( void  )
virtual

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

Reimplemented from NSActor.

◆ RunAI()

void NSBot::RunAI ( void  )
virtual

◆ SeeThink()

void NSBot::SeeThink ( void  )
virtual

◆ SetEnemy()

void NSBot::SetEnemy ( entity  en)
virtual

◆ SetInfoKey()

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

Server: Set the value of an InfoKey.

◆ SetInfoKeyFloat()

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

Server: Floating point based version of SetInfoKey().

◆ SetName()

void NSBot::SetName ( string  nickname)
virtual

◆ SetState()

void NSBot::SetState ( botstate_t  state)
virtual

◆ UseButton()

void NSBot::UseButton ( void  )
virtual

◆ WeaponAttack()

void NSBot::WeaponAttack ( void  )
virtual

◆ WeaponThink()

void NSBot::WeaponThink ( void  )
virtual

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