_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

animation_spawnunit.h
Go to the documentation of this file.
1 // _________ __ __
2 // / _____// |_____________ _/ |______ ____ __ __ ______
3 // \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
4 // / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
5 // /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
6 // \/ \/ \//_____/ \/
7 // ______________________ ______________________
8 // T H E W A R B E G I N S
9 // Stratagus - A free fantasy real time strategy game engine
10 //
12 //
13 // (c) Copyright 2012 by Joris Dauphin
14 //
15 // This program is free software; you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation; only version 2 of the License.
18 //
19 // This program is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 // GNU General Public License for more details.
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program; if not, write to the Free Software
26 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 // 02111-1307, USA.
28 //
29 
30 #ifndef ANIMATION_SPAWNUNIT_H
31 #define ANIMATION_SPAWNUNIT_H
32 
34 
35 #include <string>
36 #include "animation.h"
37 
38 //SpawnUnit flags
40  SU_None = 0,
43 };
44 
46 {
47 public:
49 
50  virtual void Action(CUnit &unit, int &move, int scale) const;
51  virtual void Init(const char *s, lua_State *l);
52 
53 private:
54  std::string unitTypeStr;
55  std::string offXStr;
56  std::string offYStr;
57  std::string rangeStr;
58  std::string playerStr;
59  std::string flagsStr;
60 };
61 
63 
64 #endif // ANIMATION_SPAWNUNIT_H
CAnimation_SpawnUnit::Action
virtual void Action(CUnit &unit, int &move, int scale) const
Definition: animation_spawnunit.cpp:46
SpawnUnit_Flags
SpawnUnit_Flags
Definition: animation_spawnunit.h:39
animation.h
AnimationSpawnUnit
@ AnimationSpawnUnit
Definition: animation.h:71
CAnimation_SpawnUnit::Init
virtual void Init(const char *s, lua_State *l)
Definition: animation_spawnunit.cpp:89
SU_None
@ SU_None
Definition: animation_spawnunit.h:40
SU_JoinToAIForce
@ SU_JoinToAIForce
Unit is marked as "summoned".
Definition: animation_spawnunit.h:42
CAnimation
Definition: animation.h:94
CAnimation_SpawnUnit::CAnimation_SpawnUnit
CAnimation_SpawnUnit()
Definition: animation_spawnunit.h:48
CAnimation_SpawnUnit
Definition: animation_spawnunit.h:45
SU_Summoned
@ SU_Summoned
Clears all flags.
Definition: animation_spawnunit.h:41
CUnit
The big unit structure.
Definition: unit.h:135
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.