SuperSpaceInvaderTurboApoca.../headers/utils.h
2022-01-01 12:57:19 +01:00

28 lines
595 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 WinValue{
NOBODY, // should never be used
PLAYERS,
INVADERS,
};
using namespace std;
typedef unsigned Invader;
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 lineCollideCheck(unsigned start1, unsigned end1, unsigned start2, unsigned end2);
#endif