File: gameobject.h

package info (click to toggle)
clanlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 28,372 kB
  • ctags: 16,520
  • sloc: cpp: 101,145; sh: 8,752; xml: 6,410; makefile: 1,740; ansic: 463; perl: 424; php: 247
file content (27 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (7)
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 _GAMEOBJECT_H_
#define _GAMEOBJECT_H_

class World;
class CL_CollisionOutline;

class GameObject
{
// Construction
public:
	GameObject(World *world) { this->world = world; }
	virtual ~GameObject() {}

// Attributes
public:
	
// Operations
public:
	virtual void draw() {};
	virtual bool update(float timeElapsed) { return false; }
	virtual bool hitCheck(CL_CollisionOutline *outline, GameObject *object) { return false; }
	
protected:
	World *world;
};

#endif