StarTrekV3_Linux  Version3
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
Animation.h
Go to the documentation of this file.
1 //
2 // ___.--------._____________,------' -----.`----._
3 // \ ` - . _ /\
4 // `.__________ ` - | | __,---"-._
5 // `-----------.______ ,'_/ ________,------'___________`----.___________
6 // `-----.____,' \===========================================/
7 // | :| >--------------.----------.---------------'
8 // / :| _,--' ,--' `--.__.--'
9 // / : |--'______________/_
10 // ,---,' : \__________________`--.
11 // `__________ |/|
12 // `------._ |\|
13 // `--._________,-'
14 //
15 //
16 //
17 // Credits go to Paramount pictures for the star - trek concept and universe.
18 
19 
20 // Copyright (C) 2015 - 2016 E.J.M. Martens
21 //
22 // This program is free software; you can redistribute it and/or
23 // modify it under the terms of the GNU General Public License
24 // as published by the Free Software Foundation; either version 2
25 // of the License, or (at your option) any later version.
26 //
27 // This program is distributed in the hope that it will be useful,
28 // but WITHOUT ANY WARRANTY; without even the implied warranty of
29 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 // GNU General Public License for more details.
31 //
32 // You should have received a copy of the GNU General Public License
33 // along with this program; if not, write to the Free Software
34 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35 
36 #ifndef _ANIMATIONS
37 #define _ANIMATIONS
38 
39 #include <vector>
40 #include "types.h"
41 #include "Engine.h"
42 
43 namespace ANIMATION
44 {
45  enum TYPE
46  {
47  EXPLOSION = 1,
52  };
53 }
54 
56  {
57  ONCE = 0,
61  };
62 
63  class TAnimation:public TSprite
64  {
65  friend class TEngine;
66  private:
67  bool m_blReverse;
68  int m_nFrame;
69  int m_nStartFrame;
70  int m_nEndFrame;
71  int m_nWait;
72  int m_nDelay;
73  ANIMATION::TYPE m_Type;
74  ANIMATIONMODE m_Mode;
75  void SetAnimation();
76 
77  public:
79  double a_dX, double a_dY,
80  double a_dSpeed,
81  double a_dAngle,
82  int a_nZ);
83  TAnimation();
84  void Do_ai();
85  static bool Init();
86  static void DeInit();
87  };
88 
89 
90 
91 #endif
92 
Definition: Animation.h:49
static void DeInit()
Definition: Animation.cpp:190
Definition: Animation.h:47
TAnimation()
Definition: Animation.cpp:27
void Do_ai()
** VIRTUAL ** Enter AI routine Called by Engine
Definition: Animation.cpp:81
Definition: Animation.h:48
static bool Init()
Definition: Animation.cpp:139
Definition: Animation.h:63
Definition: Engine.h:131
Definition: Engine.h:274
Definition: Animation.h:50
Definition: Animation.h:60
Definition: Animation.h:58
ANIMATIONMODE
Definition: Animation.h:55
Definition: Animation.h:59
TYPE
Definition: Animation.h:45
Definition: Animation.h:57
Definition: Animation.h:51