~ares-developers/ares/gd03

« back to all changes in this revision

Viewing changes to src/Misc/PoweredUnitClass.h

  • Committer: Zimmermann Gyula
  • Date: 2012-09-22 13:23:15 UTC
  • mfrom: (825.1.41)
  • Revision ID: git-v1:28613a17bb384e20bb2b95b5fbb0d9dfb903eaab
Merge remote-tracking branch 'origin/v02' into gd03

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        
17
17
        bool IsPoweredBy(HouseClass* Owner) const;
18
18
        void PowerUp();
19
 
        void PowerDown();
 
19
        bool PowerDown();
20
20
public:
21
21
        PoweredUnitClass(TechnoClass* Techno, TechnoTypeExt::ExtData* Ext)
22
22
                : Techno(Techno), Ext(Ext), LastScan(0), Powered(true) {
25
25
        ~PoweredUnitClass() {
26
26
        }
27
27
 
28
 
        //!< Updates this Powered Unit's status.
29
 
        void Update();
 
28
        //!< Updates this Powered Unit's status. Returns whether the unit should stay alive.
 
29
        bool Update();
30
30
        
31
31
        //!< Whether the unit has a building providing power. NOT the same as being online.
32
32
        inline bool IsPowered() const {