Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

testclientsnakebite.h

00001 /***************************************************************************
00002  * The contents of this file are subject to the Mozilla Public             *
00003  * License Version 1.1 (the "License"); you may not use this file          *
00004  * except in compliance with the License. You may obtain a copy of         *
00005  * the License at http://www.mozilla.org/MPL/                              *
00006  *                                                                         *
00007  * Software distributed under the License is distributed on an "AS         *
00008  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or              *
00009  * implied. See the License for the specific language governing            *
00010  * rights and limitations under the License.                               *
00011  *                                                                         *
00012  * The Original Code is Game Network Framework (GaNeF).                    *
00013  *                                                                         *
00014  * The Initial Developers of the Original Code are                         *
00015  * Lars Langer and Emanuel Greisen                                         *
00016  * Copyright (C) 2005. Lars Langer & Emanuel Greisen                       *
00017  * All Rights Reserved.                                                    *
00018  *                                                                         *
00019  * Contributor(s):                                                         *
00020  *   none yet....                                                          *
00021  *                                                                         *
00022  ***************************************************************************/
00023 #ifndef TESTCLIENTSNAKEBITE_H
00024 #define TESTCLIENTSNAKEBITE_H
00025 
00026 #include "../Ganef/client/clientdata.h"
00027 
00028 /**
00029  * @cond EXCLUDEDTESTSOURCES
00030  * @author Lars Langer and Emanuel Greisen
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 /// @endcond

Generated on Mon Feb 6 12:24:50 2006 for Ganef by  doxygen 1.4.4