Rise
The Vieneo Province
weapon.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Logger.h"
4 #include "../../Common/server.h"
5 #include "globals.h"
6 
7 struct D3DXMATRIX;
8 struct IDirect3DDevice9;
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(IDirect3DDevice9* pd3dDevice, D3DXMATRIX* matrixLookAtLocal);
21  void ProcessPacket(SWeaponPacket datapacket);
22 
23 private:
26 
27  short t, s, r;
28  int closest;
29 
30  SWeaponData weaponarray[MAX_WEAPONS];
31 };
weapon(Viewscreen *prtGame)
Definition: weapon.cpp:5
void EnergyWeaponImpact()
Definition: weapon.cpp:21
Definition: Logger.h:9
void ProcessPacket(SWeaponPacket datapacket)
Definition: weapon.cpp:984
short t
Definition: weapon.h:27
Definition: weapon.h:11
int closest
Definition: weapon.h:28
void Update(float fElapsedTime)
Definition: weapon.cpp:80
Viewscreen * viewscreen
Definition: weapon.h:24
void Render(IDirect3DDevice9 *pd3dDevice, D3DXMATRIX *matrixLookAtLocal)
Definition: weapon.cpp:799
short s
Definition: weapon.h:27
void ExplodeWeapon(short t, bool wasus, std::string reason)
Definition: weapon.cpp:646
short r
Definition: weapon.h:27
Logger * logger
Definition: weapon.h:25
void FireWeapon(unsigned char bay) const
Definition: weapon.cpp:599
SWeaponData weaponarray[MAX_WEAPONS]
Definition: weapon.h:30