⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 一个三维打斗游戏
💻 H
字号:
// (C) Copyright 1996 by Anthony J. Carin.  All Rights Reserved.

#ifndef HEAD_H
#define HEAD_H

#include "baseobj.h"
#include "personal.h"

class head : public baseobject
{
public:

         head(personal *p);
        ~head();
void     turnleft(float v);
void     turnright(float v);
void     turnup(float v);
void     turndown(float v);
void     facesurface(CString& f) { if (m_body) m_body->setbmpsurf(0,f); }
virtual void haircolor(COLORREF c) { c = c; }

};

inline void head::turnleft(float v)
{
   yposition = (direction) (TC_PI_2*v);
}

inline void head::turnright(float v)
{
   yposition = (direction) (-TC_PI_2*v);
}

inline void head::turnup(float v)
{
   xposition = (direction) (-TC_PI_4*v);
}

inline void head::turndown(float v)
{
   xposition = (direction) (TC_PI_4*v);
}


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -