| 1 | /*************************************************************************** |
| 2 | tank.h - description |
| 3 | ------------------- |
| 4 | begin : Fri Dec 29 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef TANK_H |
| 19 | #define TANK_Hcxx . . $ `src/tank.h:19:9`! |
| 20 | |
| 21 | #include "animatedcanvas.h"cxx . . $ `<file>/src/animatedcanvas.h`/ |
| 22 | |
| 23 | class Tankcxx . . $ Tank#: public AnimatedCanvascxx . . $ AnimatedCanvas#{ |
| 24 | |
| 25 | public: |
| 26 | |
| 27 | /** Crea una tanque full_level lleno*/ |
| 28 | Tankcxx . . $ Tank#Tank(cb2f890c2fdad230).(unsigned int full_level); |
| 29 | |
| 30 | /** Destructor*/ |
| 31 | ~cxx . . $ Tank#`~Tank`(ced63f7c635d850d).Tankcxx . . $ Tank#(); |
| 32 | |
| 33 | /**Disminuye la cantidad en 1.*/ |
| 34 | void decFullLevelcxx . . $ Tank#decFullLevel(cb2f890c2fdad230).(unsigned int amount); |
| 35 | |
| 36 | /** Retorna true si el tanque esta vacio.*/ |
| 37 | bool isEmptycxx . . $ Tank#isEmpty(c9857a73d68e59ba).(); |
| 38 | |
| 39 | void paintcxx . . $ Tank#paint(dec28a01b93bce57).(VideoManagercxx . . $ VideoManager# * vm); |
| 40 | |
| 41 | bool isChangedcxx . . $ Tank#isChanged(c9857a73d68e59ba).(); |
| 42 | |
| 43 | void tickcxx . . $ Tank#tick(49f6e7a06ebc5aa8).(); |
| 44 | |
| 45 | protected: |
| 46 | |
| 47 | static const unsigned int Capacitycxx . . $ Tank#Capacity.=2000; |
| 48 | static const unsigned int TankWidthcxx . . $ Tank#TankWidth.=12; |
| 49 | static const unsigned int TankHeightcxx . . $ Tank#TankHeight.=180; |
| 50 | |
| 51 | int full_levelcxx . . $ Tank#full_level.; |
| 52 | int statecxx . . $ Tank#state.; |
| 53 | bool changedcxx . . $ Tank#changed.; |
| 54 | }; |
| 55 | #endif |
| 56 |