You are on page 1of 1

/*

* File: Projectile.h
* Author: eamor
*
* Created on October 30, 2020, 4:28 PM
*/

#ifndef PROJECTILE_H
#define PROJECTILE_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */

// typedef for the struct used for projectile location


// status true when projectile exists, status false when projectile doesn't
typedef struct
{
uint8_t xpos;
uint8_t ypos;
bool status;
}ProjectileLoc;

typedef enum
{
InitProjectileState,
Gameplay,
OutOfGameplay
}ProjectileState_t;

#define MAX_PROJECTILE_COUNT 10

// Public Function Prototypes

bool InitProjectile(uint8_t Priority);


bool PostProjectile(ES_Event_t ThisEvent);
ES_Event_t RunProjectile(ES_Event_t ThisEvent);
void QueryProjectilePosition(ProjectileLoc *posArray); //will probably need to change
return type for multiple projectiles.

#endif /* PROJECTILE_H */

You might also like