One of my first programming projects. I tried to learn C and use curses...it is quite embarrassing looking back at it now :D
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
511 B

#ifndef _STRUCTS
#define _STRUCTS
struct Weapon{
char name[10];
int range;
int maxCapacity;
int curCapacity;
char projectileSymbol;
char symbols[8];
};
struct Entity {
char *type;
char symbol;
int curYpos, curXpos;
int nextYpos, nextXpos;
struct Weapon weapons[8];
int curWeapon;
int isAlive;
};
struct Projectile{
int isAlive;
char symbol;
int curXpos;
int curYpos;
int prevYpos;
int prevXpos;
int nextYpos;
int nextXpos;
int range;
char direction;
int distanceTraveled;
};
#endif