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
Bullet.h
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++
- // Bullet.h: interface for the CBullet class.
- //作者:吴雪平 2002-6-17日修改
- //实现各种武器
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_BULLET_H__BF8648A1_3F5F_11D6_812C_5254AB37CDC9__INCLUDED_)
- #define AFX_BULLET_H__BF8648A1_3F5F_11D6_812C_5254AB37CDC9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "structdef.h"
- #include "heightmap.h"
- #include "particle.h"
- class CBullet
- {
- public:
- CBullet();
- virtual ~CBullet();
- int m_bulletType;
- float m_Speed;
- VERTEX m_oldPos;
- VERTEX m_CurPos;
- NORMAL m_direction;
- float m_rotX,m_rotY,m_rotZ;
- float m_life;
- bool InitBullet(VERTEX startPos,float rotx,float roty ,NORMAL direction,unsigned int *texResource ,int type=1);
- bool InitBullet(VERTEX startPos,float rotx,float roty,unsigned int *texResource,int type=1);
- void UpdateBullet();
- private:
- void DrawM16Bullet();
- void DrawRifleBullet();
- void DrawRocketBullet();
- void DrawGunFire();
- void DrawExplosion();
- CHeightmap m_cHmap;
- CParticle m_rocket;
- CParticle m_gunShot;
- CParticle m_explosion;
- unsigned int *m_pTexResource;
- };
- #endif // !defined(AFX_BULLET_H__BF8648A1_3F5F_11D6_812C_5254AB37CDC9__INCLUDED_)