ddnet/src/game/client/components/camera.h
GreYFoXGTi 67a5765c9f Merge branch 'master' of http://github.com/oy/teeworlds
Conflicts:
	src/engine/server/server.cpp
	src/engine/shared/config_variables.h
	src/game/client/components/camera.cpp
	src/game/client/components/camera.h
	src/game/editor/ed_editor.cpp
	src/game/editor/ed_layer_tiles.cpp

Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
2010-09-19 21:27:40 +03:00

31 lines
822 B
C++

#ifndef GAME_CLIENT_COMPONENTS_CAMERA_H
#define GAME_CLIENT_COMPONENTS_CAMERA_H
#include <base/vmath.h>
#include <game/client/component.h>
#include <game/client/gameclient.h>
class CCamera : public CComponent
{
static void ConZoomPlus(IConsole::IResult *pResult, void *pUserData, int ClientID);
static void ConZoomMinus(IConsole::IResult *pResult, void *pUserData, int ClientID);
static void ConZoomReset(IConsole::IResult *pResult, void *pUserData, int ClientID);
static void ConCameraFree(IConsole::IResult *pResult, void *pUserData, int ClientID);
CGameClient::CSnapState::CCharacterInfo* getCharacter(int Id);
public:
vec2 m_Center;
float m_Zoom;
bool m_WasSpectator;
bool m_Free;
int m_Follow;
CCamera();
virtual void OnRender();
virtual void OnConsoleInit();
bool SetFollow(int Id);
};
#endif