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

About this class

Item Capture Manager.

While not an item itself, it cares about managing goal/capture items within a game.

An instance of ncCaptureItem will give an item, receive items (capturing) and assign score points.

It can be configured to look like a flag, will give a (separate) inventory item that is unique to the map and can be captured at other ncCapturePoint instances or ncCaptureItem instances.

Inheritance diagram for ncCaptureItem:
ncRenderableEntity

Public Member Functions

void ncCaptureItem (void)
 
virtual void Precache (void)
 
virtual void Respawn (void)
 Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state. More...
 
virtual void Touch (entity)
 Called whenever we're touching another entity. More...
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
nonvirtual void Captured (float teamNumber)
 
nonvirtual void WatchPlayer (void)
 

Constructor & Destructor Documentation

◆ ncCaptureItem()

void ncCaptureItem::ncCaptureItem ( void  )

Member Function Documentation

◆ Captured()

void ncCaptureItem::Captured ( float  teamNumber)

◆ Precache()

void ncCaptureItem::Precache ( void  )
virtual

Reimplemented from ncEntity.

◆ Respawn()

void ncCaptureItem::Respawn ( void  )
virtual

Server: Called when the entity first spawns or when game-logic requests the entity to return to its original spawn state.

Reimplemented from ncRenderableEntity.

◆ SpawnKey()

void ncCaptureItem::SpawnKey ( string  keyName,
string  setValue 
)
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 ncIO.

Reimplemented from ncRenderableEntity.

◆ Touch()

void ncCaptureItem::Touch ( entity  eToucher)
virtual

Called whenever we're touching another entity.

Reimplemented from ncTrigger.

◆ WatchPlayer()

void ncCaptureItem::WatchPlayer ( void  )

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