File: dynamiel.h

package info (click to toggle)
pacman 10-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 664 kB
  • ctags: 1,108
  • sloc: cpp: 3,333; makefile: 502; sh: 96
file content (24 lines) | stat: -rw-r--r-- 524 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
#ifndef __dynamiel_h_ 
 #define __dynamiel_h_
 #include"element.h"
#include"gdynelem.h"
#include"usrinter.h"
#include"board.h"
#include"usrinter.h"

class Board;

class DynamicElement : public Element {		//from now on it is a sprite

protected:
int x,y;					//the sprites coordinates
DynamicGraphElement *g;		//pointer to the sprite's graphic element

public:
virtual void draw(); 				//for drawing the sprite 
void getxy(int*,int*);				//get it's coordinates
virtual GID_TYPE getgid();			//get it's grahical id
};

#endif