SuperSpaceInvaderTurboApoca.../headers/utils.h

27 lines
596 B
C++

#ifndef SPACE_STRUCTS_H
#define SPACE_STRUCTS_H
#include<vector>
#include<mingl/mingl.h>
#include "position.h"
// hardcoded values
#define PLAYER_WINS 1
#define INVADERS_WINS 2
#define PLAYER_HEIGHT 100
#define PLAYER_HEIGHT 100
#define PROJ_LENGTH_FACTOR 2
using namespace std;
typedef unsigned Alien;
typedef vector<Alien> aliensLine;
typedef vector<aliensLine> aliensGrid;
typedef position missile;
typedef position torpedo;
// 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