StarTrekV3_Linux  Version3
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
Federation_Ship.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 
37 #ifndef _FEDERATION_SHIP
38 #define _FEDERATION_SHIP
39 
40 #include "types.h"
41 #include "Engine.h"
42 #include "Ship.h"
43 #include "Universe.h"
44 #include <allegro5/allegro_audio.h>
45 #include <vector>
46 #include <cmath>
47 
48 
49 class TFederation_Ship:public TShip
50 {
51 private:
52  ALLEGRO_SAMPLE_ID m_phaser_id;
53 
54 protected:
55 double m_dFireDelay,
59  dd;
60 
61 
62 public:
64  m_nTask,
66 
67 virtual void Do_ai();
68 void fire_photon();
69 void phaser_on();
70 void phaser_off();
71 
73 static bool Init();
74 };
75 
76 #endif
77 
Definition: Ship.h:62
int m_nFrame
Definition: Federation_Ship.h:63
double m_dFireDelay
Definition: Federation_Ship.h:55
void phaser_on()
Definition: Federation_Ship.cpp:336
void fire_photon()
Definition: Federation_Ship.cpp:317
virtual void Do_ai()
** VIRTUAL ** Enter AI routine Called by Engine
Definition: Federation_Ship.cpp:68
double dd
Definition: Federation_Ship.h:55
void phaser_off()
Definition: Federation_Ship.cpp:353
TFederation_Ship()
Definition: Federation_Ship.cpp:28
Definition: Federation_Ship.h:49
double m_dFireDelay2
Definition: Federation_Ship.h:55
double m_dAimAngle
Definition: Federation_Ship.h:55
static bool Init()
Definition: Federation_Ship.cpp:362
int m_nSequence
Definition: Federation_Ship.h:63
double m_dPowerload
Definition: Federation_Ship.h:55
int m_nTask
Definition: Federation_Ship.h:63