/*************************************************************************** * The contents of this file are subject to the Mozilla Public * * License Version 1.1 (the "License"); you may not use this file * * except in compliance with the License. You may obtain a copy of * * the License at http://www.mozilla.org/MPL/ * * * * Software distributed under the License is distributed on an "AS * * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * * implied. See the License for the specific language governing * * rights and limitations under the License. * * * * The Original Code is Game Network Framework (GaNeF). * * * * The Initial Developers of the Original Code are * * Lars Langer and Emanuel Greisen * * Copyright (C) 2005. Lars Langer & Emanuel Greisen * * All Rights Reserved. * * * * Contributor(s): * * none yet.... * * * ***************************************************************************/ #ifndef TESTCLIENTSNAKEBITE_H #define TESTCLIENTSNAKEBITE_H #include "../Ganef/client/clientdata.h" /** * @cond EXCLUDEDTESTSOURCES * @author Lars Langer and Emanuel Greisen */ class TestClientSnakeBite : public ClientData { private: int x,y; double angle; TestClientSnakeBite * nextbite; bool is_head; bool m_mybite; public: TestClientSnakeBite(ClientFramework * f, ClientPacket * packet); ~TestClientSnakeBite(); public: inline int getX() const { return x; }; inline int getY() const { return y; }; inline bool isHead() const { return is_head; }; inline bool isMine() const { return m_mybite; }; void sendWantedPosition(int _x, int _y); public: virtual void updatePacket(ClientFramework * f, unsigned char updatetype, ClientPacket * packet); }; #endif /// @endcond