00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef TESTCLIENTSNAKEBITE_H
00024 #define TESTCLIENTSNAKEBITE_H
00025
00026 #include "../Ganef/client/clientdata.h"
00027
00028
00029
00030
00031
00032 class TestClientSnakeBite : public ClientData
00033 {
00034 private:
00035 int x,y;
00036 double angle;
00037 TestClientSnakeBite * nextbite;
00038 bool is_head;
00039 bool m_mybite;
00040
00041 public:
00042 TestClientSnakeBite(ClientFramework * f, ClientPacket * packet);
00043 ~TestClientSnakeBite();
00044
00045 public:
00046 inline int getX() const { return x; };
00047 inline int getY() const { return y; };
00048 inline bool isHead() const { return is_head; };
00049 inline bool isMine() const { return m_mybite; };
00050 void sendWantedPosition(int _x, int _y);
00051
00052 public:
00053 virtual void updatePacket(ClientFramework * f, unsigned char updatetype, ClientPacket * packet);
00054
00055 };
00056
00057 #endif
00058