Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
DefenseObjectDefClass.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE_DEFENSEOBJECTDEFCLASS_H
13#define TT_INCLUDE_DEFENSEOBJECTDEFCLASS_H
14#include "DataSafe.h"
15class ChunkSaveClass;
16class ChunkLoadClass;
17typedef safe_unsigned_int SafeArmorType;
18class DefenseObjectDefClass {
19public:
20 DefenseObjectDefClass(void);
21 ~DefenseObjectDefClass(void);
22 bool Save(ChunkSaveClass &csave);
23 bool Load(ChunkLoadClass &cload);
24 safe_float Health; // 0000
25 safe_float HealthMax; // 0004
26 SafeArmorType Skin; // 0008
27 safe_float ShieldStrength; // 000C
28 safe_float ShieldStrengthMax; // 0010
29 SafeArmorType ShieldType; // 0014
30 safe_float DamagePoints; // 0018
31 safe_float DeathPoints; // 001C
32}; // 0020
33
34#endif