Skip to content

Commit

Permalink
fix compile errors?
Browse files Browse the repository at this point in the history
  • Loading branch information
nullifiedcat committed Feb 24, 2017
1 parent a762d2c commit 8b639c1
Show file tree
Hide file tree
Showing 14 changed files with 182 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions src/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class CCommand;
struct player_info_s;
class Vector;

class ICvar;
void SetCVarInterface(ICvar* iface);

#define PI 3.14159265358979323846f
#define RADPI 57.295779513082f
//#define DEG2RAD(x) (float)(x) * (float)(PI / 180.0f)
Expand Down
12 changes: 12 additions & 0 deletions src/targeting/ITargetSystem.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* ITargetSystem.cpp
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#include "ITargetSystem.h"
#include "../common.h"

ITargetSystem::~ITargetSystem() {};

18 changes: 18 additions & 0 deletions src/targeting/ITargetSystem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* ITargetSystem.h
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#ifndef ITARGETSYSTEM_H_
#define ITARGETSYSTEM_H_

class ITargetSystem {
public:
virtual ~ITargetSystem();
virtual int GetScore(int idx) = 0;
virtual const char* Name() = 0;
};

#endif /* ITARGETSYSTEM_H_ */
15 changes: 15 additions & 0 deletions src/targeting/TargetSystemDistance.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* TargetSystemDistance.cpp
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#include "TargetSystemDistance.h"

int TargetSystemDistance::GetScore(int idx) {
return 0;
}



19 changes: 19 additions & 0 deletions src/targeting/TargetSystemDistance.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* TargetSystemDistance.h
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#ifndef TARGETSYSTEMDISTANCE_H_
#define TARGETSYSTEMDISTANCE_H_

#include "ITargetSystem.h"

class TargetSystemDistance : public ITargetSystem {
public:
virtual int GetScore(int idx);
inline virtual const char* Name() { return "CLOSEST ENEMY"; };
};

#endif /* TARGETSYSTEMDISTANCE_H_ */
12 changes: 12 additions & 0 deletions src/targeting/TargetSystemFOV.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* TargetSystemFOV.cpp
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#include "TargetSystemFOV.h"

int TargetSystemFOV::GetScore(int idx) {
return 0;
}
19 changes: 19 additions & 0 deletions src/targeting/TargetSystemFOV.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* TargetSystemFOV.h
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#ifndef TARGETSYSTEMFOV_H_
#define TARGETSYSTEMFOV_H_

#include "ITargetSystem.h"

class TargetSystemFOV : public ITargetSystem {
public:
virtual int GetScore(int idx);
inline virtual const char* Name() { return "FOV"; };
};

#endif /* TARGETSYSTEMFOV_H_ */
10 changes: 10 additions & 0 deletions src/targeting/TargetSystemHealth.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* TargetSystemHealth.cpp
*
* Created on: Dec 22, 2016
* Author: nullifiedcat
*/




15 changes: 15 additions & 0 deletions src/targeting/TargetSystemHealth.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* TargetSystemHealth.h
*
* Created on: Dec 22, 2016
* Author: nullifiedcat
*/

#ifndef TARGETSYSTEMHEALTH_H_
#define TARGETSYSTEMHEALTH_H_





#endif /* TARGETSYSTEMHEALTH_H_ */
10 changes: 10 additions & 0 deletions src/targeting/TargetSystemMedigun.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* TargetSystemMedigun.cpp
*
* Created on: Dec 22, 2016
* Author: nullifiedcat
*/




15 changes: 15 additions & 0 deletions src/targeting/TargetSystemMedigun.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* TargetSystemMedigun.h
*
* Created on: Dec 22, 2016
* Author: nullifiedcat
*/

#ifndef TARGETSYSTEMMEDIGUN_H_
#define TARGETSYSTEMMEDIGUN_H_





#endif /* TARGETSYSTEMMEDIGUN_H_ */
13 changes: 13 additions & 0 deletions src/targeting/TargetSystemSmart.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* TargetSystemSmart.cpp
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#include "TargetSystemSmart.h"

int TargetSystemSmart::GetScore(int idx) {
return 0;
}

21 changes: 21 additions & 0 deletions src/targeting/TargetSystemSmart.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* TargetSystemSmart.h
*
* Created on: Nov 30, 2016
* Author: nullifiedcat
*/

#ifndef TARGETSYSTEMSMART_H_
#define TARGETSYSTEMSMART_H_

#include "ITargetSystem.h"

class ConVar;

class TargetSystemSmart : public ITargetSystem {
public:
virtual int GetScore(int idx);
inline virtual const char* Name() { return "SMART"; };
};

#endif /* TARGETSYSTEMSMART_H_ */

0 comments on commit 8b639c1

Please sign in to comment.