summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Power.h
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 19:00:23 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 19:00:23 +0000
commit69209c38968c6f4066a772e0a51a2928749217de (patch)
treeb325c535eff3dd27b811ca348e63ead8f86ff344 /Stars45/Power.h
parentfd51dc1bbbcba496fa0d57963a5727a36e381118 (diff)
downloadstarshatter-69209c38968c6f4066a772e0a51a2928749217de.zip
starshatter-69209c38968c6f4066a772e0a51a2928749217de.tar.gz
starshatter-69209c38968c6f4066a772e0a51a2928749217de.tar.bz2
Re-indenting the code to use standard tabs. Yes, I know this is pretty pointless, but who cares?
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