Namespace globals wildfire
A cellular automaton forest fire model with the ability to spread over the multiplayer network. Copyright (C) 2007 - 2012 Anders Gidenstam (anders(at)gidenstam.org) This file is licensed under the GPL license version 2 or later.
Classes
CAFire
Singleton that maintains the fire cell CA grid.
CAFireModels
Singleton that maintains the CA models.
CellModel
Class that maintains the 3d model(s) for one fire cell.
FireCell
Class that maintains the state of one fire cell.
Functions
ignite
Start a fire. pos - fire location : geo.Coord source - broadcast event? : bool
load_event_log
Load an event log. skip_ahead_until - skip from last event to this time : double (epoch) fast forward from skip_ahead_until to current time. x < last event - fast forward all the way to current time (use 0). NOTE: Can be VERY time consuming. -1 - skip to current time.
print_score
Print current score summary.
resolve_foam_drop
Resolve a foam drop impact. pos - drop location : geo.Coord radius - drop radius : double volume - drop volume : double
resolve_retardant_drop
Resolve a retardant drop impact. pos - drop location : geo.Coord radius - drop radius : double volume - drop volume : double
resolve_water_drop
Resolve a water drop impact. pos - drop location : geo.Coord radius - drop radius m : double volume - drop volume m3 : double
save_event_log
Save an event log.
score_report_loop
Utility functions.
time_string_to_epoch
Convert a time string in the format yyyy[:mm[:dd[:hh[:mm[:ss]]]]] to seconds since 1970:01:01:00:00:00. Note: This is an over simplified approximation.
trace
Set this to print for debug.
Variables
Binary
Main initialization.
CA_enabled_pp
Configuration properties
MAX_IGNITE_RATE
Maximum number of ignite events a single user can send per second.
SAVEDIR
Where to save fire event logs.
impact_node
Detect impact.
models_enabled_pp
Format: "yyyy:mm:dd:hh:mm:ss" Internal properties to control the models
time_hack
Determine the skip-ahead-to time, if any.