Migrate projectile to a class
FossilOrigin-Name: d3b4b2d476d809f7ab00502eed47614c949264690b3eccc7a96c73687d0f05bf
This commit is contained in:
parent
dae9d5553c
commit
410e244ed6
9 changed files with 97 additions and 82 deletions
11
src/Projectile.h
Normal file
11
src/Projectile.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
typedef struct dynent dynent;
|
||||
|
||||
@interface Projectile: OFObject
|
||||
@property (nonatomic) OFVector3D o, to;
|
||||
@property (nonatomic) float speed;
|
||||
@property (nonatomic) dynent *owner;
|
||||
@property (nonatomic) int gun;
|
||||
@property (nonatomic) bool inuse, local;
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue