-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrbitalSurface.h
38 lines (30 loc) · 1.06 KB
/
OrbitalSurface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// OrbitalSurface.h
// GraceWorld
//
// Created by John Detloff on 4/27/13.
// Copyright (c) 2013 Uebie. All rights reserved.
//
#import "OrbitalSensor.h"
#import <Foundation/Foundation.h>
#import "Box2D/Box2D.h"
typedef enum {
SurfaceUntouched,
SurfaceLeft,
SurfaceRight
} SurfaceRelativeDirection;
@class OrbitalCoordinate;
@interface OrbitalSurface : OrbitalSensor
@property (nonatomic, assign) BOOL activated;
@property (nonatomic, assign) BOOL isSensor;
@property (nonatomic, assign, readonly) BOOL allowsCollision;
@property (nonatomic, assign) BOOL moving;
@property (nonatomic, assign) BOOL fallThroughOnTap;
@property (nonatomic, assign) BOOL collideFromBelow;
@property (nonatomic, assign) CGFloat verticalVelocity;
@property (nonatomic, assign) CGFloat horizontalVelocity;
@property (nonatomic, strong) OrbitalCoordinate *coordA;
@property (nonatomic, strong) OrbitalCoordinate *coordB;
- (id)initWithCoordA:(OrbitalCoordinate *)coordA coordB:(OrbitalCoordinate *)coordB;
- (void)boyMadeContactOnSide:(SurfaceRelativeDirection)relativeDirection;
@end