PERSONAL.H
资源名称:tc3d.zip [点击查看]
上传用户:abcdshs
上传日期:2007-01-07
资源大小:1858k
文件大小:3k
源码类别:
游戏
开发平台:
Visual C++
- // (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
- #ifndef PERSONAL_H
- #define PERSONAL_H
- #include "afx.h"
- extern CString& getpath(CString& filename);
- enum sextype
- {
- MALE,
- FEMALE
- };
- class personal
- {
- public:
- personal() { m_startlevel = 1; }
- personal(personal& p);
- void operator =(personal& p);
- sextype gender() { return m_gender; }
- CString& face() { return m_face; }
- CString& hia() { return m_hia; }
- CString& ugh() { return m_ugh; }
- CString& laugh() { return m_laugh; }
- CString& filepath() { return m_file; }
- CString& punchlist() { return m_punchlist; }
- CString& normalpunch() { return getpath(m_normalpunch); }
- CString& upperarm() { return m_upperarm; }
- CString& lowerarm() { return m_lowerarm; }
- CString& hand() { return m_hand; }
- CString& thigh() { return m_thigh; }
- CString& lowerleg() { return m_lowerleg; }
- CString& foot() { return m_foot; }
- CString& gluts() { return m_gluts; }
- CString& boob() { return m_boob; }
- CString& hair() { return m_hair; }
- CString& body() { return m_body; }
- CString& head() { return m_head; }
- float hight() { return m_hight; }
- COLORREF haircolor() { return m_haircolor; }
- COLORREF skincolor() { return m_skincolor; }
- short startlevel() { return m_startlevel; }
- void setgender(sextype v) { m_gender = v; }
- void setface(CString& v) { m_face = v; }
- void sethia(CString& v) { m_hia = v; }
- void setugh(CString& v) { m_ugh = v; }
- void setlaugh(CString& v) { m_laugh = v; }
- void sethaircolor(COLORREF v){ m_haircolor = v; }
- void setskincolor(COLORREF v){ m_skincolor = v; }
- void setstartlevel(short v) { m_startlevel = v; }
- void save() { saveas(filepath()); }
- void load(LPCTSTR file);
- void saveas(LPCTSTR file);
- private:
- sextype m_gender;
- COLORREF m_skincolor;
- COLORREF m_haircolor;
- CString m_file;
- CString m_face;
- CString m_hia;
- CString m_ugh;
- CString m_laugh;
- CString m_punchlist;
- CString m_upperarm;
- CString m_lowerarm;
- CString m_hand;
- CString m_thigh;
- CString m_lowerleg;
- CString m_foot;
- CString m_gluts;
- CString m_boob;
- CString m_hair;
- CString m_body;
- CString m_head;
- CString m_normalpunch;
- float m_hight;
- short m_startlevel;
- };
- #endif