我注意到,如果我将某些声明放在头文件的某些位置,则会出现编译错误。我已经在代码中添加了关于我认为某些事情的去向的注释;他们是正确的吗?
@interface Level : CCNode {
//Instance variables?
PlayBackgroundLayer* playBGLayer;
PlayUILayer* playUILayer;
PlayElementLayer* playElementLayer;
}
//Static methods?
+(void) InitLevel: (int) levelNumber;
+(Level*) GetCurrentLevel;
//Property declarations for instance variables?
@property (nonatomic, retain) PlayBackgroundLayer* playBGLayer;
@end
//Static variables?
Level* currentLevel;
PlayTilemapLayer* playTilemapLayer;