Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
weapon.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
../Logger.h
"
4
#include "
../Protocol/ServerTypes.h
"
5
#include "
globals.h
"
6
7
struct
RiseMath::Matrix
;
8
class
Rendering::RenderDevice
;
9
class
Viewscreen
;
10
11
class
weapon
12
{
13
public
:
14
weapon
(
Viewscreen
* prtGame);
15
void
EnergyWeaponImpact
();
16
17
void
Update
(
float
fElapsedTime);
18
void
FireWeapon
(
unsigned
char
bay)
const
;
19
void
ExplodeWeapon
(
short
t
,
bool
wasus, std::string reason);
20
void
Render
(
Rendering::RenderDevice
* pd3dDevice,
RiseMath::Matrix
* matrixLookAtLocal);
21
void
ProcessPacket
(
SWeaponPacket
datapacket);
22
23
private
:
24
Viewscreen
*
viewscreen
;
25
Logger
*
logger
;
26
27
short
t
,
s
,
r
;
28
int
closest
;
29
30
SWeaponData
weaponarray
[
MAX_WEAPONS
];
31
unsigned
char
weaponsequence
[
MAX_WEAPONS
];
32
bool
weaponSpawnSeen
[
MAX_WEAPONS
];
33
};
Logger.h
ServerTypes.h
MAX_WEAPONS
#define MAX_WEAPONS
Definition
ServerTypes.h:200
Logger
Definition
Logger.h:11
Rendering::RenderDevice
Definition
ClientRenderer11.h:92
Viewscreen
Definition
Viewscreen.h:48
weapon::Update
void Update(float fElapsedTime)
Definition
weapon.cpp:82
weapon::EnergyWeaponImpact
void EnergyWeaponImpact()
Definition
weapon.cpp:26
weapon::FireWeapon
void FireWeapon(unsigned char bay) const
Definition
weapon.cpp:598
weapon::logger
Logger * logger
Definition
weapon.h:25
weapon::weapon
weapon(Viewscreen *prtGame)
Definition
weapon.cpp:8
weapon::s
short s
Definition
weapon.h:27
weapon::r
short r
Definition
weapon.h:27
weapon::closest
int closest
Definition
weapon.h:28
weapon::weaponsequence
unsigned char weaponsequence[MAX_WEAPONS]
Definition
weapon.h:31
weapon::weaponSpawnSeen
bool weaponSpawnSeen[MAX_WEAPONS]
Definition
weapon.h:32
weapon::t
short t
Definition
weapon.h:27
weapon::ExplodeWeapon
void ExplodeWeapon(short t, bool wasus, std::string reason)
Definition
weapon.cpp:645
weapon::ProcessPacket
void ProcessPacket(SWeaponPacket datapacket)
Definition
weapon.cpp:1046
weapon::Render
void Render(Rendering::RenderDevice *pd3dDevice, RiseMath::Matrix *matrixLookAtLocal)
Definition
weapon.cpp:860
weapon::viewscreen
Viewscreen * viewscreen
Definition
weapon.h:24
weapon::weaponarray
SWeaponData weaponarray[MAX_WEAPONS]
Definition
weapon.h:30
globals.h
RiseMath::Matrix
Definition
ClientMath.h:80
SWeaponData
Definition
globals.h:379
SWeaponPacket
Definition
ServerTypes.h:260
Viewscreen
weapon.h
Generated on
for Rise by
1.18.0