StarTrekV3_Linux  Version3
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
Starbase.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 _STARBASE
38 #define _STARBASE
39 
40 
41 #include "types.h"
42 #include "Engine.h"
43 #include "Ship.h"
44 #include "Universe.h"
45 #include <allegro5/allegro_audio.h>
46 #include <vector>
47 #include <cmath>
48 
49 
50 class TStarbase:public TShip
51 {
52 private:
53 
54 
55 double m_dAimAngle,
56  dd;
57 
58 int m_AI;
59 
60 
61 public:
62 bool armed;
64 
65 virtual void Do_ai();
66 void fire_photon();
67 TStarbase(ID a_StarbaseType);
68 
69 static bool Init();
70 static void DeInit();
71 };
72 
73 #endif
Definition: Ship.h:62
static void DeInit()
Definition: Starbase.cpp:224
static bool Init()
Definition: Starbase.cpp:171
virtual void Do_ai()
** VIRTUAL ** Enter AI routine Called by Engine
Definition: Starbase.cpp:121
void fire_photon()
Definition: Starbase.cpp:104
int sequence
Definition: Starbase.h:63
bool armed
Definition: Starbase.h:62
TStarbase(ID a_StarbaseType)
Definition: Starbase.cpp:27
int torpedoes
Definition: Starbase.h:63
Definition: Starbase.h:50
ID
Definition: types.h:170