26 |
|
|
27 |
#include <sys/types.h> |
#include <sys/types.h> |
28 |
#include <Foundation/NSObject.h> |
#include <Foundation/NSObject.h> |
29 |
|
#include "Common/Camera.h" |
30 |
|
|
31 |
@class Camera; |
@class Camera; |
32 |
|
|
46 |
return coord; |
return coord; |
47 |
} |
} |
48 |
|
|
49 |
|
int aroundTheWorld (int n, int max); |
50 |
|
|
51 |
@class Camera; |
@class Camera; |
52 |
|
|
53 |
@interface MapTerrain: NSObject |
@interface MapTerrain: NSObject |
54 |
{ |
{ |
55 |
|
@protected |
56 |
|
int _xLength; |
57 |
|
int _zLength; |
58 |
|
u_int8_t _seaLevel; |
59 |
|
|
60 |
@private |
@private |
61 |
int _xLength; |
u_int8_t *_heightField; |
|
int _zLength; |
|
|
u_int8_t *_heightField; |
|
|
u_int8_t _seaLevel; |
|
62 |
} |
} |
63 |
|
|
64 |
- (id) initWithImageName: (NSString *)imageName; |
- (id) initWithImageName: (NSString *)imageName; |
75 |
- (u_int8_t) seaLevel; |
- (u_int8_t) seaLevel; |
76 |
- (void) setSeaLevel: (u_int8_t)seaLevel; |
- (void) setSeaLevel: (u_int8_t)seaLevel; |
77 |
|
|
|
- (void) displayWithCamera: (Camera *)camera; |
|
|
|
|
78 |
@end |
@end |
79 |
|
|
80 |
#endif /* MAP_TERRAIN_H */ |
#endif /* MAP_TERRAIN_H */ |