From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_weather_8h_source.html | 184 +++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 Doc/doxygen/html/_weather_8h_source.html (limited to 'Doc/doxygen/html/_weather_8h_source.html') diff --git a/Doc/doxygen/html/_weather_8h_source.html b/Doc/doxygen/html/_weather_8h_source.html new file mode 100644 index 0000000..d587564 --- /dev/null +++ b/Doc/doxygen/html/_weather_8h_source.html @@ -0,0 +1,184 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/Weather.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Weather.h
+
+
+Go to the documentation of this file.
1 /* Project Starshatter 4.5
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Stars.exe
+
6  FILE: Weather.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Manages local weather conditions according to the system stardate
+
13 */
+
14 
+
15 #ifndef Weather_h
+
16 #define Weather_h
+
17 
+
18 #include "Types.h"
+
19 #include "Text.h"
+
20 
+
21 // +--------------------------------------------------------------------+
+
22 
+
23 class Weather
+
24 {
+
25 public:
+
26  Weather();
+
27  virtual ~Weather();
+
28 
+
29  enum STATE { CLEAR,
+ + + +
33  FOG,
+ +
35 
+ +
37  };
+
38 
+
39  virtual void Update();
+
40 
+
41  // accessors:
+
42  STATE State() const { return state; }
+
43  Text Description() const;
+
44  double Period() const { return period; }
+
45  double Chance(STATE s) const { return chances[(int)s]; }
+
46  double Ceiling() const { return ceiling; }
+
47  double Visibility() const { return visibility; }
+
48 
+
49  void SetPeriod(double p) { period = p; }
+
50  void SetChance(int n, double c);
+
51 
+
52 protected:
+
53  void NormalizeChances();
+
54 
+ +
56  double period;
+ +
58  double ceiling;
+
59  double visibility;
+
60 
+ + +
63 };
+
64 
+
65 
+
66 #endif Weather_h
+
67 
+
+
+ + + + -- cgit v1.1