summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Power.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Power.h')
-rw-r--r--Stars45/Power.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/Stars45/Power.h b/Stars45/Power.h
index 893095a..9e1d04a 100644
--- a/Stars45/Power.h
+++ b/Stars45/Power.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: Power.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: Power.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Power generation and usage classes
+ OVERVIEW
+ ========
+ Power generation and usage classes
*/
#ifndef Power_h
@@ -24,38 +24,38 @@
class PowerSource : public System
{
public:
- enum SUBTYPE { BATTERY, AUX, FUSION };
+ enum SUBTYPE { BATTERY, AUX, FUSION };
- PowerSource(SUBTYPE s, double max_output, double fuel_ratio=0);
- PowerSource(const PowerSource& rhs);
+ PowerSource(SUBTYPE s, double max_output, double fuel_ratio=0);
+ PowerSource(const PowerSource& rhs);
- virtual void ExecFrame(double seconds);
+ virtual void ExecFrame(double seconds);
- void AddClient(System* client);
- void RemoveClient(System* client);
+ void AddClient(System* client);
+ void RemoveClient(System* client);
- List<System>& Clients() { return clients; }
+ List<System>& Clients() { return clients; }
- virtual int Charge() const;
+ virtual int Charge() const;
- virtual void SetFuelRange(double hours);
+ virtual void SetFuelRange(double hours);
- bool RouteChanged() const { return route_changed; }
- void RouteScanned() { route_changed = false; }
+ bool RouteChanged() const { return route_changed; }
+ void RouteScanned() { route_changed = false; }
- // override from System:
- virtual void SetPowerLevel(double level);
- virtual void SetOverride(bool over);
+ // override from System:
+ virtual void SetPowerLevel(double level);
+ virtual void SetOverride(bool over);
- // for power drain damage:
- virtual void DrainPower(double to_level);
+ // for power drain damage:
+ virtual void DrainPower(double to_level);
protected:
- float max_output;
- float fuel_ratio;
- List<System> clients;
- bool route_changed;
- float requested_power_level;
+ float max_output;
+ float fuel_ratio;
+ List<System> clients;
+ bool route_changed;
+ float requested_power_level;
};
#endif Power_h