Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
GunState Struct Reference

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.
 

Detailed Description

Gun state structure.

Contains the runtime state information for a gun

Member Data Documentation

◆ angle

float GunState::angle

Current rotation angle of the gun.

◆ flip

SDL_RendererFlip GunState::flip

Flip state for rendering.

◆ position

Vec2 GunState::position

Current position of the gun.

◆ rotationCenter

SDL_Point GunState::rotationCenter

Point around which the gun rotates.


The documentation for this struct was generated from the following file: