Gun state structure. More...
#include <gun.h>
Public Attributes | |
| Vec2 | position |
| Current position of the gun. | |
| float | angle |
| Current rotation angle of the gun. | |
| SDL_RendererFlip | flip |
| Flip state for rendering. | |
| SDL_Point | rotationCenter |
| Point around which the gun rotates. | |
Gun state structure.
Contains the runtime state information for a gun
| float GunState::angle |
Current rotation angle of the gun.
| SDL_RendererFlip GunState::flip |
Flip state for rendering.
| Vec2 GunState::position |
Current position of the gun.
| SDL_Point GunState::rotationCenter |
Point around which the gun rotates.