StarTrekV3_Linux
Version3
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
Bullet.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
38
39
40
41
#ifndef _BULLETS
42
#define _BULLETS
43
44
45
#include <allegro5/allegro.h>
46
#include <allegro5/allegro_image.h>
47
#include <stdio.h>
48
#include <vector>
49
#include "
types.h
"
50
#include "
Engine.h
"
51
52
class
TBullet
:
public
TSprite
53
{
54
friend
class
TEngine
;
55
private
:
56
57
int
m_nFrame,
58
m_nLife;
59
int
m_nWait;
60
61
public
:
62
int
m_nDamage
;
63
64
65
TBullet
(
double
a_dX,
double
a_dY,
double
a_dSpeed,
double
a_dAngle,
int
a_nZ,
ID
a_nKind,
MEMBER
a_Member);
66
TBullet
();
67
void
Do_ai
();
68
static
bool
Init
();
69
void
Draw
(
double
a_dCamX,
double
a_dCamY);
70
};
71
72
73
#endif
TBullet::Do_ai
void Do_ai()
** VIRTUAL ** Enter AI routine Called by Engine
Definition:
Bullet.cpp:83
TBullet::TBullet
TBullet()
Definition:
Bullet.cpp:72
types.h
TBullet::Draw
void Draw(double a_dCamX, double a_dCamY)
** VIRTUAL ** Draw the sprite. is sprite and camera are in the same position, the sprite will be in t...
Definition:
Bullet.cpp:120
TSprite
Definition:
Engine.h:131
TEngine
Definition:
Engine.h:274
TBullet::Init
static bool Init()
Definition:
Bullet.cpp:138
MEMBER
MEMBER
Definition:
types.h:133
TBullet::m_nDamage
int m_nDamage
Definition:
Bullet.h:62
Engine.h
TBullet
Definition:
Bullet.h:52
ID
ID
Definition:
types.h:170
Bullet.h
Generated on Mon Oct 31 2016 21:07:26 for StarTrekV3_Linux by
1.8.6