Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
PowerupGameObjDef.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_POWERUPGAMEOBJDEF_H
13#define TT_INCLUDE_POWERUPGAMEOBJDEF_H
14#include "SimpleGameObjDef.h"
15class SmartGameObj;
16class PowerUpGameObj;
17class PowerUpGameObjDef : public SimpleGameObjDef
18{
19public:
20 PowerUpGameObjDef( void );
21 virtual uint32 Get_Class_ID( void ) const;
22 virtual PersistClass * Create( void ) const ;
23 virtual bool Save( ChunkSaveClass &csave );
24 virtual bool Load( ChunkLoadClass &cload );
25 virtual const PersistFactoryClass & Get_Factory( void ) const;
26 bool Grant( SmartGameObj * obj, PowerUpGameObj * p_powerup = NULL, bool hud_display = true ) const ;
27 int Get_Grant_Weapon_ID (void) const { return GrantWeaponID; }
28 bool Is_Persistant() const {return Persistent;}
29 bool Is_Always_Allow_Grant() const {return AlwaysAllowGrant;}
30 int Get_Grant_Sound() const {return GrantSoundID;}
31#ifdef DDBEDIT
32 virtual void Dump (FileClass &file);
33#endif
34 DECLARE_EDITABLE (PowerUpGameObjDef, SimpleGameObjDef);
35public:
36 int GrantShieldType;
37 float GrantShieldStrength;
38 float GrantShieldStrengthMax;
39 float GrantHealth;
40 float GrantHealthMax;
41 int GrantWeaponID;
42 bool GrantWeapon;
43 int GrantWeaponRounds;
44 bool GrantWeaponClips;
45 bool Persistent;
46 int GrantKey;
47 bool AlwaysAllowGrant;
48 int GrantSoundID;
49 StringClass GrantAnimationName;
50 int IdleSoundID;
51 StringClass IdleAnimationName;
52 friend class PowerUpGameObj;
53 friend class PresetDump;
54 bool GrantShieldStrengthMaxIsScaled;
55 bool GrantHealthMaxIsScaled;
56};
57
58#endif