SuperSpaceInvaderTurboApoca.../headers/utils.h

32 lines
624 B
C++

#ifndef GUARD_UTILS_H
#define GUARD_UTILS_H
#include<vector>
#include<mingl/mingl.h>
// hardcoded values
#define PLAYER_HEIGHT 100
#define PROJ_LENGTH_FACTOR 2
enum class WinValue{
NOBODY, // should never be used
PLAYERS,
INVADERS,
};
using namespace std;
enum class Invader {
TypeA,
TypeB,
TypeC,
};
typedef vector<Invader> InvadersColumn;
typedef vector<InvadersColumn> InvadersGrid;
typedef nsGraphics::Vec2D Position;
typedef unsigned playerID;
// didn't want to use Position because of the semantic with x and y
bool areLinesColliding(unsigned start1, unsigned end1, unsigned start2, unsigned end2);
#endif