CoverManager.cpp
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:1k
- // CoverManager.cpp: implementation of the CCoverManager class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "CoverManager.h"
- #include "stdio.h"
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CCoverManager::CCoverManager()
- {
- }
- CCoverManager::~CCoverManager()
- {
- }
- bool CCoverManager::InitCoverManager()
- {
- /* //////////// Translate plant map
- for(int z=0;z<256;z++)
- for(int x=0;x<256;x++)
- {
- if(m_cHmap.m_pCovermap[z*256+x]==100) //////stone
- m_cHmap.m_pCovermap[z*256+x]=20;
- if(m_cHmap.m_pCovermap[z*256+x]==150) //////grass
- m_cHmap.m_pCovermap[z*256+x]=30;
- if(m_cHmap.m_pCovermap[z*256+x]==200) //////bushA
- m_cHmap.m_pCovermap[z*256+x]=32;
- if(m_cHmap.m_pCovermap[z*256+x]==250) //////bushB
- m_cHmap.m_pCovermap[z*256+x]=41;
- }
- ////////////////////////////////
- // if(!m_cPlant.InitPlant())return false;*/
- return true;
- }
- void CCoverManager::DrawCover(int type,float xpos,float ypos,float zpos,int distance)
- {
- // m_cPlant.DrawPlant( type, xpos, ypos, zpos, distance);
- }