Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CoverManager.cpp
Package: 3dexplorerTest.rar [view]
Upload User: hkb425
Upload Date: 2007-06-16
Package Size: 34191k
Code Size: 1k
Category:
Game Engine
Development Platform:
Visual C++
- // 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);
- }