Nuclide
Software Development Kit for id Tech
NSInteractiveSurface Class Reference

This entity class represents fully interactive surfaces. More...

Inheritance diagram for NSInteractiveSurface:
NSEntity

Public Member Functions

void NSInteractiveSurface (void)
 
virtual float predraw (void)
 
virtual void postdraw (void)
 Client: Run after the rendering of 3D world is complete. More...
 
virtual bool Input (float, float, float, float)
 
virtual void Spawned (void)
 Called when the entity is fulled initialized. More...
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual void RenderScene (void)
 
virtual bool FocusCheck (vector, vector)
 
virtual void RendererRestarted (void)
 Client: Called when video resources need to be allocated or reloaded for the entity. More...
 
virtual bool CanSpawn (bool)
 Returns if this entity can spawned from the map file. More...
 

Detailed Description

This entity class represents fully interactive surfaces.

Place one around a map and you can render any UI class of your choosing.

Constructor & Destructor Documentation

◆ NSInteractiveSurface()

void NSInteractiveSurface::NSInteractiveSurface ( void  )

Member Function Documentation

◆ CanSpawn()

bool NSInteractiveSurface::CanSpawn ( bool  clientSide)
virtual

Returns if this entity can spawned from the map file.

Parameters
clientSideIf it's being spawned on the client-side.

Reimplemented from NSEntity.

◆ FocusCheck()

bool NSInteractiveSurface::FocusCheck ( vector  vecViewPos,
vector  vecViewAng 
)
virtual

◆ Input()

bool NSInteractiveSurface::Input ( float  flEVType,
float  flKey,
float  flChar,
float  flDevID 
)
virtual

◆ postdraw()

void NSInteractiveSurface::postdraw ( void  )
virtual

Client: Run after the rendering of 3D world is complete.

2D calls can happen here.

Reimplemented from NSEntity.

◆ predraw()

float NSInteractiveSurface::predraw ( void  )
virtual

Reimplemented from NSEntity.

◆ RendererRestarted()

void NSInteractiveSurface::RendererRestarted ( void  )
virtual

Client: Called when video resources need to be allocated or reloaded for the entity.

Reimplemented from NSEntity.

◆ RenderScene()

void NSInteractiveSurface::RenderScene ( void  )
virtual

◆ Spawned()

void NSInteractiveSurface::Spawned ( void  )
virtual

Called when the entity is fulled initialized.

Any spawn key/value info pairs have already been dealt with. So now we can make full decisions on the entity. Always make sure to call super::Spawned(); inside your method when overriding.

Reimplemented from NSEntity.

◆ SpawnKey()

void NSInteractiveSurface::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSEntity.


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