Planeshift
|
This class handles mode messages from the server, specifying "normal", or "combat" or "death", or whatever. More...
#include <modehandler.h>
Public Member Functions | |
void | AddDownfallObject (WeatherObject *weatherobject) |
void | ClearLightFadeSettings () |
void | CreatePortalWeather (iSector *sector, csTicks delta) |
Creates and places a weather object at each portal to a {WEATHER}ing sector. More... | |
bool | CreatePortalWeather (iPortal *portal, csTicks delta) |
void | DoneLoading (const char *sectorname) |
void | FinishLightFade () |
TimeOfDay | GetGeneralTime () |
size_t | GetTime () |
virtual void | HandleMessage (MsgEntry *me) |
bool | Initialize () |
ModeHandler (psCelClient *cc, MsgHandler *mh, iObjectRegistry *object_reg) | |
void | PreProcess () |
void | ProcessFog (const psWeatherMessage::NetWeatherInfo &info) |
void | RemoveDownfallObject (WeatherObject *weatherobject) |
void | RemovePortalWeather () |
Remove weather from all portals. More... | |
void | RemoveWeather () |
Remove fog and downfall from sector. More... | |
void | SetEntity (GEMClientActor *ent) |
void | SetModeSounds (uint8_t mode) |
void | UpdateLights () |
virtual | ~ModeHandler () |
![]() | |
virtual void | HandleMessage (MsgEntry *msg, Client *) |
Interprets a received message and executes the command. More... | |
virtual bool | Verify (MsgEntry *, unsigned int, Client *&) |
virtual | ~psClientNetSubscriber () |
Protected Attributes | |
GEMClientObject * | actorEntity |
CS::ShaderVarStringID | ambientId |
csRef< psCelClient > | celclient |
uint | clockHour |
Stores the time of day in hours. More... | |
CS::ShaderVarStringID | combinedAmbientId |
WeatherObject * | downfall |
csRef< iEngine > | engine |
WeatherObject * | fog |
bool | interpolation_complete |
uint | interpolation_step |
csTicks | interpolation_time |
csTicks | last_interpolation_reset |
csTicks | last_weather_update |
csRef< iSharedVariable > | lightningreset |
csPDelArray< LightingList > | lights |
csRef< MsgHandler > | msghandler |
iObjectRegistry * | object_reg |
csPDelArray< WeatherPortal > | portals |
bool | processWeather |
csRandomGen * | randomgen |
csString | sound_name |
bool | sound_queued |
csTicks | sound_when |
uint | stepStage |
TimeOfDay | timeOfDay |
Stores the 'general' time of day it is. One of the TimeOfDay enums. More... | |
csRef< iVFS > | vfs |
csTicks | weather_update_time |
csHash< WeatherInfo *, csString > | weatherlist |
This class handles mode messages from the server, specifying "normal", or "combat" or "death", or whatever.
Right now, all it does is change the background music, but in the future this class could also trigger visual effects, in-game cinematics or whatever else we think of.
Definition at line 107 of file modehandler.h.
ModeHandler::ModeHandler | ( | psCelClient * | cc, |
MsgHandler * | mh, | ||
iObjectRegistry * | object_reg | ||
) |
|
virtual |
void ModeHandler::AddDownfallObject | ( | WeatherObject * | weatherobject | ) |
|
protected |
void ModeHandler::ClearLightFadeSettings | ( | ) |
|
protected |
void ModeHandler::CreatePortalWeather | ( | iSector * | sector, |
csTicks | delta | ||
) |
Creates and places a weather object at each portal to a {WEATHER}ing sector.
bool ModeHandler::CreatePortalWeather | ( | iPortal * | portal, |
csTicks | delta | ||
) |
|
protected |
|
protected |
|
protected |
void ModeHandler::DoneLoading | ( | const char * | sectorname | ) |
|
protected |
void ModeHandler::FinishLightFade | ( | ) |
|
protected |
|
inline |
Definition at line 124 of file modehandler.h.
|
protected |
|
inline |
Definition at line 127 of file modehandler.h.
|
protected |
|
protected |
|
protected |
|
virtual |
Implements psClientNetSubscriber.
|
protected |
|
protected |
|
protected |
|
protected |
bool ModeHandler::Initialize | ( | ) |
|
protected |
void ModeHandler::PreProcess | ( | ) |
|
protected |
void ModeHandler::ProcessFog | ( | const psWeatherMessage::NetWeatherInfo & | info | ) |
|
protected |
|
protected |
|
protected |
void ModeHandler::RemoveDownfallObject | ( | WeatherObject * | weatherobject | ) |
void ModeHandler::RemovePortalWeather | ( | ) |
Remove weather from all portals.
void ModeHandler::RemoveWeather | ( | ) |
Remove fog and downfall from sector.
void ModeHandler::SetEntity | ( | GEMClientActor * | ent | ) |
void ModeHandler::SetModeSounds | ( | uint8_t | mode | ) |
|
protected |
|
protected |
|
protected |
void ModeHandler::UpdateLights | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 146 of file modehandler.h.
|
protected |
Definition at line 175 of file modehandler.h.
|
protected |
Definition at line 155 of file modehandler.h.
|
protected |
Stores the time of day in hours.
Definition at line 152 of file modehandler.h.
|
protected |
Definition at line 176 of file modehandler.h.
|
protected |
Definition at line 185 of file modehandler.h.
|
protected |
Definition at line 157 of file modehandler.h.
|
protected |
Definition at line 186 of file modehandler.h.
|
protected |
Definition at line 167 of file modehandler.h.
|
protected |
Definition at line 165 of file modehandler.h.
|
protected |
Definition at line 164 of file modehandler.h.
|
protected |
Definition at line 166 of file modehandler.h.
|
protected |
Definition at line 179 of file modehandler.h.
|
protected |
Definition at line 174 of file modehandler.h.
|
protected |
Definition at line 161 of file modehandler.h.
|
protected |
Definition at line 156 of file modehandler.h.
|
protected |
Definition at line 154 of file modehandler.h.
|
protected |
Definition at line 187 of file modehandler.h.
|
protected |
Definition at line 188 of file modehandler.h.
|
protected |
Definition at line 168 of file modehandler.h.
|
protected |
Definition at line 170 of file modehandler.h.
|
protected |
Definition at line 169 of file modehandler.h.
|
protected |
Definition at line 171 of file modehandler.h.
|
protected |
Definition at line 163 of file modehandler.h.
|
protected |
Stores the 'general' time of day it is. One of the TimeOfDay enums.
Definition at line 149 of file modehandler.h.
|
protected |
Definition at line 158 of file modehandler.h.
|
protected |
Definition at line 180 of file modehandler.h.
|
protected |
Definition at line 182 of file modehandler.h.