#ifndef _AS_GA_PLAYER #define _AS_GA_PLAYER /* #ifndef _AS_PC_MATRIX #include "pc_matrix.HPP" #endif */ #ifndef _AS_GA_ARENA #include "ga_arena.hpp" #endif const float AS_PLAYER_MOVE_FACTOR = 200.0; const unsigned int AS_PLAYER_ROTATE_FACTOR = 160; const int AS_PLAYER_NOSE = 450;//260;//120; const int AS_PLAYER_LEGS = 700; class AsPlayer { public: // position /* float X; float Y; float Z; float oldX; float oldY; float oldZ; */ int X; int Y; int Z; int oldX; int oldY; int oldZ; int xRoom; int yRoom; int zRoom; // rotation in units of AS_DEGREES_360 unsigned int aroundX; unsigned int aroundY; unsigned int aroundZ; int roomRotation; // Matrix3D worldView[AS_MAX_REPLICATE]; void Move(unsigned int angle); public: AsPlayer(); // void SetPosition(float newX, float newY, float newZ); void SetPosition(int newX, int newY, int newZ); void StoreOldPosition(); void Reset(); void MoveForward(); void MoveBackward(); void MoveLeft(); void MoveRight(); void TurnLeft(); void TurnRight(); void LookUp(); void LookDown(); void TwistLeft(); void TwistRight(); }; #endif