summaryrefslogtreecommitdiff
path: root/src/UFO.h
blob: cf6746131df276e0625c354ed766c48411093292 (plain)
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
#ifndef UFO_H
#define UFO_H

#include "point.h"
#include "velocity.h"

class UFO
{
   public:
	   UFO();
	   Point getPoint() const;
	   Velocity getVelocity() const;
	   bool isAlive() const;
      void setAlive ( bool isAlive );
	   void setPoint( const Point &point );
 	   void setVelocity( const Velocity &velocity );
      void setVelocity ( float dx , float dy );
	   void advance();
	   void kill();
      virtual void draw() = 0;
   protected:
       bool alive;
       Point point;
       Velocity velocity;
};

#endif