www.pudn.com > 林海血原源代码.zip > Plant.h
// Plant.h: interface for the CPlant class.
//作者:吴雪平 2002-6-17日修改
//实现花草树木
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLANT_H__1F61610B_CBDC_4A13_A4BA_CD293F8568F6__INCLUDED_)
#define AFX_PLANT_H__1F61610B_CBDC_4A13_A4BA_CD293F8568F6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPlant
{
public:
CPlant();
virtual ~CPlant();
bool InitPlant();
void DrawPlant(int PlantID,float XPosition,float YPosition,
float ZPosition,int distance);
protected:
void DrawTree();
void DrawTreeB();
void DrawGrass();
void DrawBushA();
void DrawBushB();
void DrawVine();
void DrawStone();
bool LoadPlantPicture();
float m_xpos;
float m_ypos;
float m_zpos;
float m_szTree;
float m_szTreeB;
float m_szBush;
float m_szGrass;
float m_szVine;
float m_szStone;
float m_height;
unsigned int texGrass[4];
unsigned int texBush[4];
unsigned int texBranch[5];
unsigned int texVine[2];
unsigned int texTreeBody[2];
unsigned int texStone[1];
};
#endif // !defined(AFX_PLANT_H__1F61610B_CBDC_4A13_A4BA_CD293F8568F6__INCLUDED_)