#include <appconfig.h>
#include <sections.h>
#include <compilerpragmas.h>
Go to the source code of this file.
Functions | |
EXPORT void | DoNastyStuffTo (welem_t type, UInt16 probability, UInt8 purge) DISASTER_SECTION |
Do nasty things to a location. | |
EXPORT void | DoCommitmentNasties (void) DISASTER_SECTION |
perform nasties to zones if they are not being completely funded | |
EXPORT void | DoRandomDisaster (void) DISASTER_SECTION |
Do a random disaster. | |
EXPORT void | DoSpecificDisaster (disaster_t disaster) DISASTER_SECTION |
Deliberately cause a disaster. | |
EXPORT Int16 | UpdateDisasters (void) DISASTER_SECTION |
Make sure the disasters are still happening. | |
EXPORT Int16 | BurnField (UInt16 x, UInt16 y, Int16 forceit) DISASTER_SECTION |
burn the field specified. | |
EXPORT Int16 | CreateMonster (UInt16 x, UInt16 y) DISASTER_SECTION |
Create a 'zilla at the location specified. | |
EXPORT Int16 | CreateDragon (UInt16 x, UInt16 y) DISASTER_SECTION |
Create a dragon at the location. | |
EXPORT void | MoveAllObjects (void) DISASTER_SECTION |
Move all the moveable elements around the screen. | |
EXPORT Int16 | MeteorDisaster (UInt16 x, UInt16 y) DISASTER_SECTION |
We've had a meteor strike on the map at that location. |
Definition in file disaster.h.
|
burn the field specified. Can be forced to burn.
Definition at line 233 of file disaster.c. References bc_fire, Build_Destroy(), ContainsDefence(), DrawCross(), getWorld(), Int16, LockZone(), lz_flags, lz_world, setWorldAndFlag(), UInt16, UnlockZone(), welem_t, and WORLDPOS. Referenced by CreateMeteor(), DoSpecificDisaster(), FireSpread(), and MoveAllObjects(). |
|
Create a dragon at the location.
Definition at line 288 of file disaster.c. References DrawField(), GetRandomNumber(), getWorld(), LockZone(), lz_flags, lz_world, obj_dragon, UInt16, UnlockZone(), welem_t, and WORLDPOS. Referenced by DoSpecificDisaster(). |
|
Create a 'zilla at the location specified.
Definition at line 266 of file disaster.c. References DrawField(), GetRandomNumber(), getWorld(), LockZone(), lz_flags, lz_world, obj_monster, UInt16, UnlockZone(), welem_t, and WORLDPOS. Referenced by DoSpecificDisaster(). |
|
Do nasty things to a location. turns a zone into wasteland based on the normalized probability.
Definition at line 58 of file disaster.c. References Build_Destroy(), CreateWaste(), getMapWidth, GetRandomNumber(), getWorld(), LockZone(), lz_flags, lz_world, MapMul, UInt16, UInt32, UInt8, UnlockZone(), and welem_t. Referenced by DoUpkeep(). |
|
Deliberately cause a disaster.
Definition at line 132 of file disaster.c. References BurnField(), CreateDragon(), CreateMonster(), diDragon, diFireOutbreak, diMeteor, diMonster, diPlantExplosion, disaster_t, getMapHeight, getMapWidth, GetRandomNumber(), Goto(), Int16, MapHasJumped(), MapMul, MeteorDisaster(), UInt16, and UInt32. Referenced by DoRandomDisaster(). |
|
We've had a meteor strike on the map at that location.
Definition at line 473 of file disaster.c. References CreateMeteor(), GetRandomNumber(), Int16, and UInt16. Referenced by DoSpecificDisaster(). |
|
Make sure the disasters are still happening. Causes all disasters to go to their next stage.
Definition at line 171 of file disaster.c. References CreateWaste(), FireSpread(), GetDefenceValue(), getMapHeight, getMapWidth, GetRandomNumber(), getWorld(), LockZone(), lz_flags, lz_world, setWorldAndFlag(), UInt16, UnlockZone(), welem_t, and WORLDPOS. Referenced by mainloop_callback(). |