Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61 lines (50 sloc)
1.2 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __KILLDATA | |
#define __KILLDATA | |
// wxWindows includes | |
#include <wx/datetime.h> | |
#include <wx/string.h> | |
#include <wx/dynarray.h> | |
// Statsgen Includes | |
class KillData; | |
enum KillTypes | |
{ | |
KILL_TYPE_KILL=0, | |
KILL_TYPE_DEATH, | |
KILL_TYPE_TEAMKILL, | |
KILL_TYPE_TEAMKILLVICTIM, | |
KILL_TYPE_TEAMSWAP, | |
KILL_TYPE_SUICIDE | |
}; | |
#define KILL_TYPE_STRING_UNKNOWN "UNKNOWN" | |
#define KILL_TYPE_STRING_KILL "KILL" | |
#define KILL_TYPE_STRING_DEATH "DEATH" | |
#define KILL_TYPE_STRING_TEAMKILL "TEAMKILL" | |
#define KILL_TYPE_STRING_TEAMKILLVICTIM "TEAMKILLVICTIM" | |
#define KILL_TYPE_STRING_SUICIDE "SUICIDE" | |
#define KILL_TYPE_STRING_TEAMSWAP "TEAMSWAP" | |
WX_DECLARE_OBJARRAY(KillData,ArrayOfKillData); | |
class KillData | |
{ | |
public: | |
KillData(); | |
virtual ~KillData(); | |
KillTypes KillType(int gameType,int playerIndex); | |
static wxString SQLCreateTable(); | |
static wxString SQLTableName(); | |
bool WriteToDatabase(int roundIndex,int itemIndex); | |
char *KillTypeText(); | |
wxDateTime killTime; | |
int gameType; | |
int mapName; | |
int playerIndex; | |
int playerClass; | |
int playerTeam; | |
int playerWeapon; | |
int playerAmmo; | |
int targetIndex; | |
int targetClass; | |
int targetTeam; | |
int targetDamage; | |
int targetLocation; | |
}; | |
#endif |