📄 basewarship.h
字号:
/**************************************************************************************
Project Name : Pirates of the Caribbean
Module Name : Base warship
File Name : BaseWarship.h: interface for the CBaseWarship class.
Create : 2007-7-16, by Vigame
Update : 2007-7-25, init m_bullet[i].m_bActive as false, by Vigame
Copyright :
Reference :
Abstrct : Base warship
**************************************************************************************/
#ifndef __H_BaseWarship__
#define __H_BaseWarship__
#pragma once
#include "moveobject.h"
#include "Bullet.h"
// Ship type descriptions ////////////////////////////////////////////////////////
enum Ship_Type
{
LuggerPC, // Computer's
Jalor,
Arrow,
Tortoise,
Business,
Transport,
Lugger, // For player of level 1
Warship // For player of level 2
};
// Lugger : This type of ship is very weak, little hp, common speed.
// Jalor : Better than lugger, more hp and faster speed, but it's weak too.
// Arrow : This Type of ship's speed is fastest, but it can be broken easily
// because of it's poor hp, power is OK.
// Tortoise : Like it's name, to have so much hp, but it's very very very slow,
// good news, it's powerful.
// Business : Take bonus.
// Transoprt: It's very common but have more scores.
///////////////////////////////////////////////////////////////////////////////////
const int MAX_BULLET_COUNT = 6;
class CGameResource;
class CGameSound;
class CBaseWarship : public CMoveObject
{
public:
CBaseWarship(void);
virtual ~CBaseWarship(void);
virtual void Fire(CGameResource *&pResource, CGameSound *&pSound);
public:
Ship_Type m_nShipType;
int m_nBulletCount; // The number of bullet can be used
int m_nBulletOut; // The number of bullet fired
int m_nBulletPower;
DWORD m_dwScore;
DWORD m_timeFired;
DWORD m_timeInSeaweed;
bool m_bIsInSeaweed;
bool m_bIsExplode;
CBullet m_bullet[MAX_BULLET_COUNT];
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -