summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Weather.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Weather.h')
-rw-r--r--Stars45/Weather.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/Stars45/Weather.h b/Stars45/Weather.h
index 6196e92..01d3166 100644
--- a/Stars45/Weather.h
+++ b/Stars45/Weather.h
@@ -1,15 +1,15 @@
/* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: Weather.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: Weather.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Manages local weather conditions according to the system stardate
+ OVERVIEW
+ ========
+ Manages local weather conditions according to the system stardate
*/
#ifndef Weather_h
@@ -23,43 +23,43 @@
class Weather
{
public:
- Weather();
- virtual ~Weather();
+ Weather();
+ virtual ~Weather();
- enum STATE { CLEAR,
- HIGH_CLOUDS,
- MODERATE_CLOUDS,
- OVERCAST,
- FOG,
- STORM,
+ enum STATE { CLEAR,
+ HIGH_CLOUDS,
+ MODERATE_CLOUDS,
+ OVERCAST,
+ FOG,
+ STORM,
- NUM_STATES
- };
+ NUM_STATES
+ };
- virtual void Update();
+ virtual void Update();
- // accessors:
- STATE State() const { return state; }
- Text Description() const;
- double Period() const { return period; }
- double Chance(STATE s) const { return chances[(int)s]; }
- double Ceiling() const { return ceiling; }
- double Visibility() const { return visibility; }
+ // accessors:
+ STATE State() const { return state; }
+ Text Description() const;
+ double Period() const { return period; }
+ double Chance(STATE s) const { return chances[(int)s]; }
+ double Ceiling() const { return ceiling; }
+ double Visibility() const { return visibility; }
- void SetPeriod(double p) { period = p; }
- void SetChance(int n, double c);
+ void SetPeriod(double p) { period = p; }
+ void SetChance(int n, double c);
protected:
- void NormalizeChances();
+ void NormalizeChances();
- STATE state;
- double period;
- double chances[NUM_STATES];
- double ceiling;
- double visibility;
+ STATE state;
+ double period;
+ double chances[NUM_STATES];
+ double ceiling;
+ double visibility;
- STATE active_states[NUM_STATES];
- double thresholds[NUM_STATES];
+ STATE active_states[NUM_STATES];
+ double thresholds[NUM_STATES];
};