00001 //////////////////////////////////////////////////////////////////////////////// 00002 // Scorched3D (c) 2000-2009 00003 // 00004 // This file is part of Scorched3D. 00005 // 00006 // Scorched3D is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // Scorched3D is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with Scorched3D; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 //////////////////////////////////////////////////////////////////////////////// 00020 00021 #if !defined(__INCLUDE_TargetStateh_INCLUDE__) 00022 #define __INCLUDE_TargetStateh_INCLUDE__ 00023 00024 class TankFalling; 00025 class NetBuffer; 00026 class NetBufferReader; 00027 00028 class TargetStateMovement 00029 { 00030 public: 00031 TargetStateMovement(); 00032 virtual ~TargetStateMovement(); 00033 }; 00034 00035 class TargetState 00036 { 00037 public: 00038 TargetState(); 00039 virtual ~TargetState(); 00040 00041 TankFalling *getFalling() { return falling_; } 00042 void setFalling(TankFalling *falling) { falling_ = falling; } 00043 00044 bool getDisplayDamage() { return displayDamage_; } 00045 void setDisplayDamage(bool displayDamage) { displayDamage_ = displayDamage; } 00046 00047 bool getDisplayShadow() { return displayShadow_; } 00048 void setDisplayShadow(bool displayShadow) { displayShadow_ = displayShadow; } 00049 00050 bool getDisplayHardwareShadow() { return displayHardwareShadow_; } 00051 void setDisplayHardwareShadow(bool displayHardwareShadow) { displayHardwareShadow_ = displayHardwareShadow; } 00052 00053 bool getNoDamageBurn() { return noDamageBurn_; } 00054 void setNoDamageBurn(bool noDamageBurn) { noDamageBurn_ = noDamageBurn; } 00055 00056 bool getNoCollision() { return noCollision_; } 00057 void setNoCollision(bool noCollision) { noCollision_ = noCollision; } 00058 00059 bool getNoFalling() { return noFalling_; } 00060 void setNoFalling(bool noFalling) { noFalling_ = noFalling; } 00061 00062 bool getNoFallingDamage() { return noFallingDamage_; } 00063 void setNoFallingDamage(bool noFalling) { noFallingDamage_ = noFalling; } 00064 00065 TargetStateMovement *getMovement() { return movement_; } 00066 void setMovement(TargetStateMovement *movement) { movement_ = movement; } 00067 00068 void setDriveOverToDestroy(bool d) { driveOverToDestroy_ = d; } 00069 bool getDriveOverToDestroy() { return driveOverToDestroy_; } 00070 00071 void setFlattenDestroy(bool d) { flattenDestroy_ = d; } 00072 bool getFlattenDestroy() { return flattenDestroy_; } 00073 00074 bool writeMessage(NetBuffer &buffer); 00075 bool readMessage(NetBufferReader &reader); 00076 00077 protected: 00078 TankFalling *falling_; 00079 TargetStateMovement *movement_; 00080 bool displayHardwareShadow_; 00081 bool displayShadow_; 00082 bool displayDamage_; 00083 bool noDamageBurn_; 00084 bool noCollision_; 00085 bool noFalling_; 00086 bool noFallingDamage_; 00087 bool driveOverToDestroy_; 00088 bool flattenDestroy_; 00089 00090 }; 00091 00092 #endif // __INCLUDE_TargetStateh_INCLUDE__
1.5.3