|
Planeshift
|
Contains information about sectors from the server perspective. More...
#include <pssectorinfo.h>
Classes | |
| struct | weatherTypeData |
| Structure used to store informations for various weather types in this sector. More... | |
Public Member Functions | |
| void | AddWeatherTypeData (weatherTypeData newWeatherData, unsigned int id) |
| Adds informations about a weather type defined by id. More... | |
| double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
| This is used by the math scripting engine to get calculated values. More... | |
| csVector3 | GetDeathCord () |
| Gets the sector cordinates we will teleport to when dieing in this sector. More... | |
| bool | GetDeathRestoreHP () |
| Checks if a teleporting sector will trigger the death penalty when used. More... | |
| bool | GetDeathRestoreMana () |
| Checks if a teleporting sector will trigger the death penalty when used. More... | |
| float | GetDeathRot () |
| Gets the rotation we will teleport to when dieing in this sector. More... | |
| csString | GetDeathSector () |
| Gets the sector name we will teleport to when dieing in this sector. More... | |
| bool | GetHasPenalty () |
| Checks if a teleporting sector will trigger the death penalty when used. More... | |
| bool | GetIsColliding () |
| bool | GetIsNonTransient () |
| bool | GetIsTeleporting () |
| Checks if this is set as a teleporting sector. More... | |
| double | GetProperty (MathEnvironment *env, const char *ptr) |
| This is used by the math scripting engine to get various values. More... | |
| unsigned int | GetRandomWeatherDensity (unsigned int id) |
| Gets a random value between the max and min density for this weather type. More... | |
| unsigned int | GetRandomWeatherDuration (unsigned int id) |
| Gets a random value between the max and min Duration for this weather type. More... | |
| unsigned int | GetRandomWeatherFadeIn (unsigned int id) |
| Gets a random value between the max and min Fade In for this weather type. More... | |
| unsigned int | GetRandomWeatherFadeOut (unsigned int id) |
| Gets a random value between the max and min Fade Out for this weather type. More... | |
| unsigned int | GetRandomWeatherGap (unsigned int id) |
| Gets a random value between the max and min Gap for this weather type. More... | |
| csVector3 | GetTeleportingCord () |
| Gets the sector cordinates we will teleport to when entering this sector. More... | |
| float | GetTeleportingRot () |
| Gets the rotation we will teleport to when entering this sector. More... | |
| csString | GetTeleportingSector () |
| Gets the sector name we will teleport to when entering this sector. More... | |
| bool | GetWeatherEnabled (unsigned int id) |
| Gets the enabled status of a weather event type for this sector. More... | |
| psSectorInfo () | |
| void | SetWeatherEnabled (unsigned int id, bool newStatus) |
| Sets the enabled status of a weather event type for this sector. More... | |
| const char * | ToString () |
| ~psSectorInfo () | |
Public Member Functions inherited from iScriptableVar | |
| virtual | ~iScriptableVar () |
Public Attributes | |
| int | b |
| unsigned int | current_rain_drops |
| Drops. More... | |
| csVector3 | deathCords |
| the destination cordinates where to teleport on death from this sector More... | |
| bool | deathRestoreHP |
| Sets if this sector will restore hp when the player dies in it. More... | |
| bool | deathRestoreMana |
| Sets if this sector will restore mana when the player dies in it. More... | |
| float | deathRot |
| The destination rotation where to teleport on death from this sector. More... | |
| csString | deathSector |
| The sector where to teleport on death from this sector. Note if empty it will be the default one. More... | |
| bool | densitySaved |
| unsigned int | fog_density |
| unsigned int | fog_density_old |
| unsigned int | fogFade |
| int | g |
| csString | god_name |
| bool | has_penalty |
| This sector will apply the death penalty if it's a teleporting sector. More... | |
| bool | is_colliding |
| bool | is_non_transient |
| bool | is_raining |
| bool | is_snowing |
| bool | is_teleporting |
| This sector will immediately teleport the player somewhere else when entered if true. More... | |
| csString | name |
| int | r |
| float | say_range |
| csVector3 | teleportingCords |
| The destination cordinates when this sector is a teleporting sector. More... | |
| float | teleportingRot |
| The destination rotation when this sector is a teleporting sector. More... | |
| csString | teleportingSector |
| The destination sector when this sector is a teleporting sector. Note if empty it will be spawn. More... | |
| unsigned int | uid |
| csHash< weatherTypeData, unsigned int > | weatherData |
| An hash containing all the various possible weather data. More... | |
Contains information about sectors from the server perspective.
It includes the ID, name of a sector and weather parameters.
Definition at line 46 of file pssectorinfo.h.
| psSectorInfo::psSectorInfo | ( | ) |
| psSectorInfo::~psSectorInfo | ( | ) |
| void psSectorInfo::AddWeatherTypeData | ( | weatherTypeData | newWeatherData, |
| unsigned int | id | ||
| ) |
Adds informations about a weather type defined by id.
| newWeatherData | A weatherTypeData struct containing the informations about a weather type. |
| id | The id of the weather type we are adding. |
|
virtual |
This is used by the math scripting engine to get calculated values.
Implements iScriptableVar.
|
inline |
Gets the sector cordinates we will teleport to when dieing in this sector.
Definition at line 138 of file pssectorinfo.h.
|
inline |
Checks if a teleporting sector will trigger the death penalty when used.
Definition at line 92 of file pssectorinfo.h.
|
inline |
Checks if a teleporting sector will trigger the death penalty when used.
Definition at line 101 of file pssectorinfo.h.
|
inline |
Gets the rotation we will teleport to when dieing in this sector.
Definition at line 145 of file pssectorinfo.h.
|
inline |
Gets the sector name we will teleport to when dieing in this sector.
Definition at line 131 of file pssectorinfo.h.
|
inline |
Checks if a teleporting sector will trigger the death penalty when used.
Definition at line 83 of file pssectorinfo.h.
|
inline |
Definition at line 61 of file pssectorinfo.h.
|
inline |
Definition at line 65 of file pssectorinfo.h.
|
inline |
Checks if this is set as a teleporting sector.
A teleporting sector is a sector which teleports the player to defined sector (in teleportingSector/Cords/Rot) or spawn if not defined.
Definition at line 75 of file pssectorinfo.h.
|
virtual |
This is used by the math scripting engine to get various values.
Implements iScriptableVar.
Gets a random value between the max and min density for this weather type.
| id | The id of the event |
Gets a random value between the max and min Duration for this weather type.
| id | The id of the event |
Gets a random value between the max and min Fade In for this weather type.
| id | The id of the event |
Gets a random value between the max and min Fade Out for this weather type.
| id | The id of the event |
Gets a random value between the max and min Gap for this weather type.
| id | The id of the event |
|
inline |
Gets the sector cordinates we will teleport to when entering this sector.
Definition at line 116 of file pssectorinfo.h.
|
inline |
Gets the rotation we will teleport to when entering this sector.
Definition at line 123 of file pssectorinfo.h.
|
inline |
Gets the sector name we will teleport to when entering this sector.
Definition at line 109 of file pssectorinfo.h.
Gets the enabled status of a weather event type for this sector.
| id | The id of the event |
Sets the enabled status of a weather event type for this sector.
| id | The id of the event |
| newStatus | The new status to assign to the weather event type (false for disabled) |
|
inlinevirtual |
Implements iScriptableVar.
Definition at line 56 of file pssectorinfo.h.
| int psSectorInfo::b |
Definition at line 256 of file pssectorinfo.h.
Drops.
Definition at line 221 of file pssectorinfo.h.
| csVector3 psSectorInfo::deathCords |
the destination cordinates where to teleport on death from this sector
Definition at line 246 of file pssectorinfo.h.
| bool psSectorInfo::deathRestoreHP |
Sets if this sector will restore hp when the player dies in it.
Definition at line 231 of file pssectorinfo.h.
| bool psSectorInfo::deathRestoreMana |
Sets if this sector will restore mana when the player dies in it.
Definition at line 229 of file pssectorinfo.h.
| float psSectorInfo::deathRot |
The destination rotation where to teleport on death from this sector.
Definition at line 248 of file pssectorinfo.h.
| csString psSectorInfo::deathSector |
The sector where to teleport on death from this sector. Note if empty it will be the default one.
Definition at line 244 of file pssectorinfo.h.
| bool psSectorInfo::densitySaved |
Definition at line 254 of file pssectorinfo.h.
Definition at line 253 of file pssectorinfo.h.
Definition at line 253 of file pssectorinfo.h.
Definition at line 255 of file pssectorinfo.h.
| int psSectorInfo::g |
Definition at line 256 of file pssectorinfo.h.
| csString psSectorInfo::god_name |
Definition at line 260 of file pssectorinfo.h.
| bool psSectorInfo::has_penalty |
This sector will apply the death penalty if it's a teleporting sector.
Definition at line 236 of file pssectorinfo.h.
| bool psSectorInfo::is_colliding |
Definition at line 225 of file pssectorinfo.h.
| bool psSectorInfo::is_non_transient |
Definition at line 226 of file pssectorinfo.h.
| bool psSectorInfo::is_raining |
Definition at line 223 of file pssectorinfo.h.
| bool psSectorInfo::is_snowing |
Definition at line 224 of file pssectorinfo.h.
| bool psSectorInfo::is_teleporting |
This sector will immediately teleport the player somewhere else when entered if true.
Definition at line 234 of file pssectorinfo.h.
| csString psSectorInfo::name |
Definition at line 151 of file pssectorinfo.h.
| int psSectorInfo::r |
Definition at line 256 of file pssectorinfo.h.
| float psSectorInfo::say_range |
Definition at line 258 of file pssectorinfo.h.
| csVector3 psSectorInfo::teleportingCords |
The destination cordinates when this sector is a teleporting sector.
Definition at line 240 of file pssectorinfo.h.
| float psSectorInfo::teleportingRot |
The destination rotation when this sector is a teleporting sector.
Definition at line 242 of file pssectorinfo.h.
| csString psSectorInfo::teleportingSector |
The destination sector when this sector is a teleporting sector. Note if empty it will be spawn.
Definition at line 238 of file pssectorinfo.h.
Definition at line 150 of file pssectorinfo.h.
| csHash<weatherTypeData, unsigned int> psSectorInfo::weatherData |
An hash containing all the various possible weather data.
Definition at line 171 of file pssectorinfo.h.