source: trunk/monsterz/piece.h @ 243

Last change on this file since 243 was 243, checked in by sam, 10 years ago

Allow to immediately grab an ungrabbed piece if it is close enough.

File size: 565 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Piece class
8// ---------------
9//
10
11#if !defined __DH_PIECE_H__
12#define __DH_PIECE_H__
13
14#include "entity.h"
15#include "game.h"
16
17class PieceData;
18
19class Piece : public Entity
20{
21public:
22    Piece(Game *game, Int2 cell, int id);
23    virtual ~Piece();
24
25    int Blink();
26    int Grab(Int2 dir);
27    int Ungrab();
28
29protected:
30    virtual void TickGame(float deltams);
31    virtual void TickDraw(float deltams);
32
33private:
34    PieceData *data;
35};
36
37#endif // __DH_PIECE_H__
38
Note: See TracBrowser for help on using the repository browser.