HEAD.H
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:1k
- // (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