24 |
#ifndef HG_OBJECT_H |
#ifndef HG_OBJECT_H |
25 |
#define HG_OBJECT_H |
#define HG_OBJECT_H |
26 |
|
|
27 |
|
#include <ode/objects.h> |
28 |
|
|
29 |
#include <Foundation/NSObject.h> |
#include <Foundation/NSObject.h> |
30 |
|
|
31 |
#include "Common/Coord.h" |
#include "Common/Coord.h" |
37 |
@class HgGame; |
@class HgGame; |
38 |
@class HgPlayer; |
@class HgPlayer; |
39 |
|
|
40 |
|
@class Quaternion; |
41 |
@class MdlModel; |
@class MdlModel; |
42 |
|
|
43 |
@interface HgObject : NSObject |
@interface HgObject : NSObject |
44 |
{ |
{ |
|
|
|
45 |
@private |
@private |
46 |
unsigned _identifier; |
unsigned _identifier; |
47 |
id _delegate; |
id _data; |
48 |
coord_t _position; |
dBodyID _dBody; |
49 |
coord_t _orientation; |
NSMutableArray *_boundingBoxes; |
50 |
HgGame *_game; |
HgGame *_game; |
51 |
NSNumber *_playerIdentifier; |
HgPlayer *_player; |
52 |
} |
} |
53 |
|
|
54 |
+ (NSString *) name; |
+ (NSString *) name; |
60 |
|
|
61 |
- (unsigned) identifier; |
- (unsigned) identifier; |
62 |
|
|
63 |
- (id) delegate; |
- (id) data; |
64 |
- (void) setDelegate: (id)delegate; |
- (void) setData: (id)data; |
65 |
|
|
66 |
- (NSString *) state; |
- (NSString *) state; |
67 |
|
|
68 |
- (coord_t) position; |
- (coord_t) position; |
69 |
- (void) setPosition: (coord_t)position; |
- (void) setPosition: (coord_t)position; |
70 |
|
|
71 |
- (coord_t) orientation; |
- (Quaternion *) orientation; |
72 |
- (void) setOrientation: (coord_t)orientation; |
- (void) setOrientation: (Quaternion *)orientation; |
73 |
|
|
74 |
- (HgGame *) game; |
- (HgGame *) game; |
75 |
- (HgPlayer *) player; |
- (HgPlayer *) player; |