-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathship.h
More file actions
executable file
·49 lines (40 loc) · 765 Bytes
/
ship.h
File metadata and controls
executable file
·49 lines (40 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef SHIP_H
#define SHIP_H
#include <iostream>
#include "SDL.h"
#include <SDL_draw/SDL_draw.c>
using namespace std;
class ship{
public:
ship();
double getx();
double gety();
double gettheta();
double getNoseX();
double getNoseY();
double getvx();
double getvy();
double getsize();
int getpower();
void setx( double );
void sety( double );
void setpower( int );
void accelerate_linear( int );
void accelerate_angular( double );
void move();
void teleport( int, int );
void draw( SDL_Surface*, Uint32 );
void check_borders( int, int );
private:
double x, y;
double vx, vy;
double theta;
double omega;
double thrust;
double alpha;
double size;
double vmax;
double omax;
int power;
};
#endif