Id: | To index | |
Original: | Legend | |
Status: | ||
Mutant: | Show |
Testcases to display
Filter by kind
Filter by status
1: // |
2: // physics.h |
3: // minirl |
4: // |
5: // Created by Benjamin Porter on 2/1/18. |
6: // Copyright © 2018 Benjamin Porter. All rights reserved. |
7: // |
8: |
9: # ifndef physics_hpp |
10: # define physics_hpp |
11: |
12: # include "entity.h" |
13: # include "util.h" |
14: |
15: enum PhysicsType { Projectile , Static } ; |
16: |
17: class Physics : public Component { |
18: public : |
19: PhysicsType type { Static } ; |
20: vec2d position { 0 , 0 } ; |
21: vec2d velocity { 0 , 0 } ; |
22: } ; |
23: |
24: # endif /* physics_hpp */ |