Planeshift
psWeatherMessage Class Reference

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...
 
- Public Member Functions inherited from psMessageCracker
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
 
- Public Attributes inherited from psMessageCracker
int filterNumber
 
csRef< MsgEntrymsg
 
bool valid
 

Additional Inherited Members

- Static Public Attributes inherited from psMessageCracker
static MsgHandlermsghandler
 

Detailed Description

Sends messages to the client indicating rain and time of day.

Definition at line 1595 of file messages.h.

Member Enumeration Documentation

Enumerator
DAYNIGHT 
WEATHER 

Definition at line 1598 of file messages.h.

Enumerator
RAIN 
SNOW 
FOG 
LIGHTNING 

Definition at line 1604 of file messages.h.

Constructor & Destructor Documentation

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)

Member Function Documentation

psWeatherMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psWeatherMessage::ToString ( NetBase::AccessPointers accessPointers)
virtual

Converts the message into human readable string.

Parameters
accessPointersA struct to a number of access pointers.
Returns
Return a human readable string for the message.

Implements psMessageCracker.

Member Data Documentation

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.


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