Library globals

Namespace globals . wildfire

View source


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.

SimTime

dialog

mp_last_limited_event

old_score

score

Functions

foam_drop_msg

ignite

Start a fire. pos - fire location : geo.Coord source - broadcast event? : bool

ignition_msg

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.

parse_msg

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

retardant_drop_msg

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.

water_drop_msg

Variables

Binary

Main initialization.

CA_enabled_pp

Configuration properties

CONFIG_DLG

LOD_High

LOD_Low

MAX_IGNITE_RATE

Maximum number of ignite events a single user can send per second.

MP_share_pp

SAVEDIR

Where to save fire event logs.

broadcast

broadcast

crash_fire_pp

event_file_pp

fire_LOD_pp

impact_fire_pp

impact_node

Detect impact.

models_enabled_pp

Format: "yyyy:mm:dd:hh:mm:ss" Internal properties to control the models

msg_channel_mpp

report_score_pp

restore_on_startup_pp

save_on_exit_pp

seq

smoke_LOD_pp

time_hack

Determine the skip-ahead-to time, if any.

time_hack_pp

wildfire_score_CAFireModels_loop_timer

30hz

wildfire_score_CAFire_loop_timer

wildfire_score_report_loop_timer