Planeshift
|
Sends messages to the client indicating rain and time of day. More...
#include <messages.h>
Classes | |
struct | NetWeatherInfo |
Public Types | |
enum | playerMode { DAYNIGHT = 1, WEATHER = 2 } |
enum | Weather { RAIN = 4, SNOW = 8, FOG = 16, LIGHTNING = 32 } |
Public Member Functions | |
PSF_DECLARE_MSG_FACTORY () | |
psWeatherMessage (uint32_t client, psWeatherMessage::NetWeatherInfo info, uint clientnum=0) | |
psWeatherMessage (uint32_t client, int minute, int hour, int day, int month, int year) | |
psWeatherMessage (MsgEntry *message) | |
virtual csString | ToString (NetBase::AccessPointers *accessPointers) |
Converts the message into human readable string. More... | |
![]() | |
void | FireEvent () |
Publishes the message to the local program. More... | |
virtual csString | GetMessageTypeName () const =0 |
Gets the name of the message type. More... | |
void | Multicast (csArray< PublishDestination > &multi, uint32_t except, float range) |
Multicasts the message to all current connections. More... | |
psMessageCracker () | |
void | SendMessage () |
Sends the message to the client/server. More... | |
virtual | ~psMessageCracker () |
Public Attributes | |
uint | day |
uint | hour |
uint | minute |
For Day/Night events. More... | |
uint | month |
int | type |
Holds the options that the window should display. More... | |
NetWeatherInfo | weather |
uint | year |
![]() | |
int | filterNumber |
csRef< MsgEntry > | msg |
bool | valid |
Additional Inherited Members | |
![]() | |
static MsgHandler * | msghandler |
Sends messages to the client indicating rain and time of day.
Definition at line 1595 of file messages.h.
Enumerator | |
---|---|
DAYNIGHT | |
WEATHER |
Definition at line 1598 of file messages.h.
Enumerator | |
---|---|
RAIN | |
SNOW | |
FOG | |
LIGHTNING |
Definition at line 1604 of file messages.h.
psWeatherMessage::psWeatherMessage | ( | uint32_t | client, |
psWeatherMessage::NetWeatherInfo | info, | ||
uint | clientnum = 0 |
||
) |
psWeatherMessage::psWeatherMessage | ( | uint32_t | client, |
int | minute, | ||
int | hour, | ||
int | day, | ||
int | month, | ||
int | year | ||
) |
psWeatherMessage::psWeatherMessage | ( | MsgEntry * | message | ) |
psWeatherMessage::PSF_DECLARE_MSG_FACTORY | ( | ) |
|
virtual |
Converts the message into human readable string.
accessPointers | A struct to a number of access pointers. |
Implements psMessageCracker.
uint psWeatherMessage::day |
Definition at line 1647 of file messages.h.
uint psWeatherMessage::hour |
Definition at line 1646 of file messages.h.
uint psWeatherMessage::minute |
For Day/Night events.
Definition at line 1645 of file messages.h.
uint psWeatherMessage::month |
Definition at line 1648 of file messages.h.
int psWeatherMessage::type |
Holds the options that the window should display.
Definition at line 1642 of file messages.h.
NetWeatherInfo psWeatherMessage::weather |
Definition at line 1651 of file messages.h.
uint psWeatherMessage::year |
Definition at line 1649 of file messages.h.