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
Bomber.h
Package: tanksrc.zip [view]
Upload User: royluo
Upload Date: 2007-01-05
Package Size: 1584k
Code Size: 3k
Category:
Game Program
Development Platform:
Visual C++
- /*****************************************************************************
- *
- * Bomber.h
- *
- * Electrical Engineering Faculty - Software Lab
- * Spring semester 1998
- *
- * Tanks game
- *
- * Module description: Interface of the bomber game object.
- *
- *
- * Authors: Eran Yariv - 28484475
- * Moshe Zur - 24070856
- *
- *
- * Date: 23/09/98
- *
- ******************************************************************************/
- #ifndef _BOMBER_OBJECT_H_
- #define _BOMBER_OBJECT_H_
- #include "GameConsts.h"
- #include "GameObject.h"
- #include "ImageManager.h"
- #include "ManouverSet.h"
- #include "Timer.h"
- #include "GameObjectsList.h"
- #include "MsgQueue.h"
- #include "TankObj.h"
- #include "Bomb.h"
- class CBomber : public CMovingGameObject
- {
- public:
- CBomber (CTankObj *pParent); // Creates a bomber is setup mode
- CBomber (UINT uDirInd, // Creates a bomber in flight mode
- UINT uXPos,
- UINT uYPos,
- DWORD dwInitFlightTime);
- ~CBomber ();
- StateType CalcState (DWORD dwCurTime);
- ObjectHeightType GetHeight();
- HIMAGE GetImage();
- CReaction React(CGameObject *pTo);
- GameObjectType GetType();
- BOOL IsLocal ();
- private:
- typedef enum {
- BOMBER_STATE_SETUP, // Setup mode
- BOMBER_STATE_FLYING, // Flying mode
- BOMBER_STATE_DEAD // Dead now
- } BomberStateType;
- // images:
- HIMAGE m_hImage; // handle to a bitmap of a bomber
- // keyboard:
- CManouverSet * m_pManouverSet; // points to manouver set in game manager
- // manouvers:
- DWORD m_dwLastMoveTick; // last time a we moved (in setup) or dropped a bomb (in flying)
- // properties:
- CTankObj * m_pFather;
- BOOL m_bLocal; // Are we a local or remote bomber?
- BomberStateType m_State;
- DWORD m_dwInitialTime; // Flight start time
- CPoint m_InitialPos; // Flight start point
- UINT m_uEdgePos; // Position on map edge
- // aliases:
- CMsgQueue & m_MsgQueue;
- TIMER_CLASS & m_Timer;
- CPoint CalcEdgePos ();
- void FixEdgeDirection ();
- BOOL FindBombPos (CPoint &ResPos, DWORD dwTimeGap);
- void SendBomberMsg();
- };
- #include "Bomber.inl"
- #endif