25 lines
515 B
C
25 lines
515 B
C
#ifndef SPACEWARPLAYER_H
|
|
#define SPACEWARPLAYER_H
|
|
#include "xyVector.h"
|
|
|
|
// A struct storing the needed data to draw a ship:
|
|
typedef struct ship
|
|
{
|
|
int number;
|
|
xyVector engine;
|
|
xyVector gravity;
|
|
xyVector position;
|
|
xyVector velocity;
|
|
SDL_Rect rectangle;
|
|
} ship;
|
|
|
|
// A struct to store the input state for one player:
|
|
typedef struct playerController
|
|
{
|
|
int number;
|
|
int clockwiseTurn, anticlockwiseTurn, acceleratingAmount;
|
|
bool turningClockwise, turningAnticlockwise, accelerating;
|
|
} playerController;
|
|
|
|
#endif
|