📄 tleveldata.h
字号:
// Copyright 2002 Kenneth Guy,
//
// TLevelData.h
#ifndef _TLEVELDATA_H_
#define _TLEVELDATA_H_
/** \file TLevelData.h
defines class TLevelData */
#include <e32std.h>
/** Defines a level.
This contains pointers into level data, and the sprites to use
as the players ship, explosions, and bullets. The class does
not own the pointers.
*/
class TLevelData {
public:
const TInt16* iMapData; /**< Map data processed by CMap::ProcessMapLine */
const TUint16* iBackgrounds; /**< Background sprites */
const TUint16* iSprites;/**< Foreground moving sprites */
const TInt16* iPaths; /**< Data for path following bad guys*/
const TUint16* iStatus; /**< Data to describe status area */
TInt16 iShipSprite; /**< Sprite number of healthy ship sprite */
TInt16 iShipDeathStartSprite; /**< First frame of players explosion */
TInt16 iShipDeathEndSprite; /**< Last frame of players explosion (inclusive)*/
TInt16 iBadGuyDeathStartSprite; /**< First frame of badguys explosion */
TInt16 iBadGuyDeathEndSprite; /**< Last frame of badguys explosion (inclusive)*/
TInt16 iBulletPower1_StartSprite; /**< first set of eight players bullet sprites */
TInt16 iBulletPower2_StartSprite; /**< second set of eight players bullet sprites */
TInt16 iBulletPower3_StartSprite; /**< third set of eight players bullet sprites */
TInt16 iBulletPower4_StartSprite; /**< fourth set of eight players bullet sprites */
TInt16 iShipStartXPos; /**< X Start position of players ship */
TInt16 iShipStartYPos; /**< Y Start position of players ship */
TInt16 iShipStartHealth; /**< Starting health of players ship */
TInt16 iShipPowerups; /**< Number of weapon powerups at start of level */
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -