This entity class represents every spectator client.
These types of clients are not meant to interfere with the gameplay, they are merely observers.
ncPlayer is a sub-class which has the ability to interact with games.
When clients connect via the spectate
command, they will findthemselves of type ncSpectator.
|
void | ncSpectator (void) |
|
virtual void | ProcessInput (void) |
| Called within the class to deal with the final input handling of the client. More...
|
|
virtual void | PreFrame (void) |
| Run once, every frame, before physics are run on the player. More...
|
|
virtual void | PostFrame (void) |
| Run once, every frame, after physics are run on the player. More...
|
|
virtual bool | IsFakeSpectator (void) |
| Returns if we're a 'fake' spectator. More...
|
|
virtual bool | IsRealSpectator (void) |
| Returns if we're a 'real' spectator. More...
|
|
virtual bool | IsDead (void) |
| Returns if we're considered 'dead'. More...
|
|
virtual bool | IsPlayer (void) |
| Returns if we're a player. More...
|
|
virtual void | SharedInputFrame (void) |
| Like ClientInputFrame and ServerInputFrame, but run on both client and server at the same time. More...
|
|
virtual void | InputNext (void) |
| Call to spectate the next spectating target. More...
|
|
virtual void | InputPrevious (void) |
| Call to spectate the previous player target. More...
|
|
virtual void | InputMode (void) |
| Call to change the spectating mode. More...
|
|
virtual void | WarpToTarget (void) |
| Re-teleport to the target we're spectating. More...
|
|
virtual void | SpectatorTrackPlayer (void) |
| Called every frame to track with our target player. More...
|
|
virtual void | ClientInputFrame (void) |
| Client: Called on the client to give a chance to override input_* variables before networking them takes place. More...
|
|
virtual void | ReceiveEntity (float, float) |
| Client: Handles network updates from the server for the associated entity. More...
|
|
virtual float | predraw (void) |
|
virtual void | Save (float) |
| Handles saving a copy of this entity to a given filehandle. More...
|
|
virtual void | Restore (string, string) |
| Similar to ncIO::SpawnKey() but for save-game fields. More...
|
|
virtual void | EvaluateEntity (void) |
| Run each tic after physics are run to determine if we need to send updates over the network. More...
|
|
virtual float | SendEntity (entity, float) |
| Called by the engine whenever we need to send a client an update about this entity. More...
|
|
virtual void | ServerInputFrame (void) |
| Server: This is where the input* variables arrive after sending them out from the client (see ClientInputFrame). More...
|
|
nonvirtual void | SpectatorDeathcam (ncRenderableEntity, ncEntity, float) |
|
void ncSpectator::SharedInputFrame |
( |
void |
| ) |
|
|
virtual |
Like ClientInputFrame and ServerInputFrame, but run on both client and server at the same time.
It is run before ClientInputFrame and ServerInputFrame. When overriding, Make sure to call the super method to enable Nuclide to handle spectator controls properly.
Reimplemented from ncClient.
Reimplemented in ncPlayer.