#ifndef GUARD_STRUCTS_H #define GUARD_STRUCTS_H #include #include #include"position.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 Alien; typedef vector aliensLine; typedef vector aliensGrid; typedef position missile; class torpedo : public nsGraphics::Vec2D { public: topedo(int x, int y); 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