Planeshift
Public Member Functions | Public Attributes

AdminCmdDataFog Class Reference

Class for fog command. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

 AdminCmdDataFog ()
 Creates obj for specified command that control fog.
 AdminCmdDataFog (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Parses the given message and stores its data.
virtual AdminCmdDataCreateCmdData (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Creates an object containing the parsed data for fog.
virtual csString GetHelpMessage ()
 Returns a helpmessage that fits to the parser of the class.
virtual ~AdminCmdDataFog ()

Public Attributes

int b
 fog color, blue component
int density
 density of the fog
bool enabled
 whether the weather effect is enabled or not
int fadeTime
 in millisecs the time to have the particles fade
int g
 fog color, green component
int interval
 lenght of the weather effect
int r
 fog color, red component

Detailed Description

Class for fog command.

Definition at line 2049 of file adminmanager.h.


Constructor & Destructor Documentation

AdminCmdDataFog::AdminCmdDataFog ( ) [inline]

Creates obj for specified command that control fog.

Definition at line 2062 of file adminmanager.h.

AdminCmdDataFog::AdminCmdDataFog ( AdminManager msgManager,
MsgEntry me,
psAdminCmdMessage msg,
Client client,
WordArray words 
)

Parses the given message and stores its data.

Parameters:
msgManagermessage manager that handles this command
meThe incoming message from the GM
msgpsAdminCmdMessage containing the message
clientclient of the network communication
wordscommand message to parse
virtual AdminCmdDataFog::~AdminCmdDataFog ( ) [inline, virtual]

Definition at line 2075 of file adminmanager.h.


Member Function Documentation

virtual AdminCmdData* AdminCmdDataFog::CreateCmdData ( AdminManager msgManager,
MsgEntry me,
psAdminCmdMessage msg,
Client client,
WordArray words 
) [virtual]

Creates an object containing the parsed data for fog.

Parameters:
msgManagermessage manager that handles this command
meThe incoming message from the GM
msgpsAdminCmdMessage containing the message
clientclient of the network communication
wordscommand message to parse
Returns:
AdminCmdData* pointer to object containing parsed data. When parsing failed the valid flag is set to false.

Reimplemented from AdminCmdDataSectorTarget.

virtual csString AdminCmdDataFog::GetHelpMessage ( ) [virtual]

Returns a helpmessage that fits to the parser of the class.

Returns:
csString: a help message to send back to the client

Reimplemented from AdminCmdDataSectorTarget.


Member Data Documentation

fog color, blue component

Definition at line 2058 of file adminmanager.h.

density of the fog

Definition at line 2053 of file adminmanager.h.

whether the weather effect is enabled or not

Definition at line 2052 of file adminmanager.h.

in millisecs the time to have the particles fade

Definition at line 2054 of file adminmanager.h.

fog color, green component

Definition at line 2057 of file adminmanager.h.

lenght of the weather effect

Definition at line 2055 of file adminmanager.h.

fog color, red component

Definition at line 2056 of file adminmanager.h.


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