|
freg
0.3
Free-Roaming Elementary Game
|
#include <Shred.h>


Public Member Functions | |
| Shred (int shred_x, int shred_y, long longi, long lati) | |
| ~Shred () | |
| Shred & | operator= (Shred &)=delete |
| Shred (Shred &)=delete | |
| long | Longitude () const |
| Returns y (line) shred coordinate on world map. More... | |
| long | Latitude () const |
| Returns x (column) shred coordinate on world map. More... | |
| int | ShredX () const |
| int | ShredY () const |
| void | PhysEventsFrequent () |
| void | PhysEventsRare () |
| void | Register (Active *) |
| void | Unregister (Active *) |
| void | AddShining (Active *) |
| void | RemShining (Active *) |
| void | AddToDelete (Active *) |
| void | ReloadTo (dirs) |
| QLinkedList< Active *const > ::const_iterator | ShiningBegin () const |
| QLinkedList< Active *const > ::const_iterator | ShiningEnd () const |
| World * | GetWorld () const |
| Block * | GetBlock (const int x, const int y, const int z) const |
| void | SetBlock (Block *block, int x, int y, int z) |
| Removes last block at xyz, then SetBlock, then makes block normal. More... | |
| void | SetBlockNoCheck (Block *, int x, int y, int z) |
| Puts block to coordinates xyz and activates it. More... | |
| void | AddFalling (Block *) |
| void | PutBlock (Block *const block, const int x, int y, int z) |
| int | Lightmap (int x, int y, int z) const |
| int | FireLight (int x, int y, int z) const |
| int | SunLight (int x, int y, int z) const |
| int | LightLevel (int x, int y, int z) const |
| bool | SetSunLight (int x, int y, int z, int level) |
| bool | SetFireLight (int x, int y, int z, int level) |
| void | SetLightmap (int x, int y, int z, int level) |
| void | SetAllLightMapNull () |
| void | ShineAll () |
| Makes all shining blocks of shred shine. More... | |
| void | SetNewBlock (int kind, int sub, int x, int y, int z, int dir=UP) |
| shred_type | GetTypeOfShred () const |
| Shred * | GetShredMemory () const |
| long | GlobalX (int x) const |
| Make global coordinate from local (in loaded zone). More... | |
| long | GlobalY (int y) const |
| void | Rain (int kind, int sub) |
| void | Dew (int kind, int sub) |
Public Member Functions inherited from Weather | |
| void | SetWeather (weathers) |
| weathers | GetWeather () const |
Static Public Member Functions | |
| static Block * | Normal (int sub) |
| Puts block to coordinates, not activates it. More... | |
| static QString | FileName (QString world_name, long longi, long lati) |
| static int | CoordInShred (const int x) |
| Get local coordinate. More... | |
| static int | CoordOfShred (const int x) |
| Get shred coordinate in loaded zone (from 0 to numShreds). More... | |
| static bool | InBounds (int x, int y, int z) |
| Lowest nullstone and sky are not in bounds. More... | |
| static bool | InBounds (int x, int y) |
| static bool | InBounds (int z) |
| static QString | ShredTypeName (shred_type) |
Static Public Member Functions inherited from Weather | |
| static QString | GetWeatherString (weathers) |
Private Member Functions | |
| void | RemoveAllSunLight () |
| void | RemoveAllFireLight () |
| void | RemoveAllLight () |
| bool | LoadShred () |
| void | RegisterInit (Active *) |
| void | NormalUnderground (int depth=0, subs sub=SOIL) |
| void | CoverWith (int kind, int sub) |
| void | RandomDrop (int num, int kind, int sub, bool on_water=false) |
| Puts num things(kind-sub) in random places on shred surface. More... | |
| void | DropBlock (Block *bloc, bool on_water) |
| int | CountShredTypeAround (int type) const |
| void | PlantGrass () |
| void | TestShred () |
| void | NullMountain () |
| void | Plain () |
| void | Forest (bool dead) |
| void | Water (subs sub=WATER) |
| void | Pyramid () |
| void | Mountain () |
| void | Hill (bool dead) |
| void | Desert () |
| void | Castle () |
| void | WasteShred () |
| void | ChaosShred () |
| For testing purposes. More... | |
| void | LoadRoom (int level, int index=0) |
| bool | Tree (int x, int y, int z, int height) |
| Block combinations section (trees, buildings, etc): More... | |
| void | ShredLandAmplitudeAndLevel (long longi, long lati, ushort *l, float *a) const |
| Special land generation. More... | |
| void | ShredNominalAmplitudeAndLevel (char shred_type, ushort *l, float *a) const |
| void | AddWater () |
| int | FlatUndeground (int depth=0) |
| void | NormalCube (int x_start, int y_start, int z_start, int x_size, int y_size, int z_size, subs) |
| void | RainBlock (int *kind, int *sub) const |
Private Attributes | |
| Block * | blocks [SHRED_WIDTH][SHRED_WIDTH][HEIGHT] |
| uchar | lightMap [SHRED_WIDTH][SHRED_WIDTH][HEIGHT] |
| const long | longitude |
| const long | latitude |
| int | shredX |
| int | shredY |
| shred_type | type |
| QLinkedList< Active * > | activeListAll |
| Contains all active blocks. More... | |
| QLinkedList< Active * > | activeListFrequent |
| QLinkedList< Active *const > | shiningList |
| QLinkedList< Falling * > | fallList |
| weathers | weather |
| Shred::Shred | ( | int | shred_x, |
| int | shred_y, | ||
| long | longi, | ||
| long | lati | ||
| ) |
|
delete |
| void Shred::AddToDelete | ( | Active * | ) |
|
private |
|
inlinestatic |
|
inlinestatic |
|
private |
Definition at line 204 of file Shred-gen-flat.cpp.
|
private |
|
static |
| int Shred::FireLight | ( | int | x, |
| int | y, | ||
| int | z | ||
| ) | const |
Definition at line 227 of file Lighting-inertia.cpp.
|
private |
Definition at line 25 of file Shred-gen-flat.cpp.
|
private |
Definition at line 53 of file Shred-gen-flat.cpp.
|
inline |
| Shred* Shred::GetShredMemory | ( | ) | const |
| shred_type Shred::GetTypeOfShred | ( | ) | const |
| long Shred::GlobalX | ( | int | x | ) | const |
|
private |
Definition at line 119 of file Shred-gen-flat.cpp.
|
static |
| long Shred::Latitude | ( | ) | const |
| int Shred::LightLevel | ( | int | x, |
| int | y, | ||
| int | z | ||
| ) | const |
| int Shred::Lightmap | ( | int | x, |
| int | y, | ||
| int | z | ||
| ) | const |
Definition at line 223 of file Lighting-inertia.cpp.
|
private |
| long Shred::Longitude | ( | ) | const |
|
private |
Definition at line 152 of file Shred-gen-flat.cpp.
|
static |
|
private |
Definition at line 30 of file Shred-gen-flat.cpp.
|
private |
Definition at line 44 of file Shred-gen-flat.cpp.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
| void Shred::SetAllLightMapNull | ( | ) |
Definition at line 261 of file Lighting-inertia.cpp.
| void Shred::SetBlock | ( | Block * | block, |
| int | x, | ||
| int | y, | ||
| int | z | ||
| ) |
| void Shred::SetBlockNoCheck | ( | Block * | block, |
| int | x, | ||
| int | y, | ||
| int | z | ||
| ) |
| bool Shred::SetFireLight | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | level | ||
| ) |
Definition at line 245 of file Lighting-inertia.cpp.
| void Shred::SetLightmap | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | level | ||
| ) |
Definition at line 256 of file Lighting-inertia.cpp.
| void Shred::SetNewBlock | ( | int | kind, |
| int | sub, | ||
| int | x, | ||
| int | y, | ||
| int | z, | ||
| int | dir = UP |
||
| ) |
| bool Shred::SetSunLight | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | level | ||
| ) |
Definition at line 235 of file Lighting-inertia.cpp.
| void Shred::ShineAll | ( | ) |
Makes all shining blocks of shred shine.
Definition at line 264 of file Lighting-inertia.cpp.
| QLinkedList< Active *const >::const_iterator Shred::ShiningBegin | ( | ) | const |
| QLinkedList< Active *const >::const_iterator Shred::ShiningEnd | ( | ) | const |
|
private |
Special land generation.
|
private |
|
static |
| int Shred::SunLight | ( | int | x, |
| int | y, | ||
| int | z | ||
| ) | const |
Definition at line 231 of file Lighting-inertia.cpp.
|
private |
|
private |
Definition at line 211 of file Shred-gen-flat.cpp.
Definition at line 79 of file Shred-gen-flat.cpp.
|
private |
|
private |
|
private |
|
private |
1.8.7