mirror of
https://github.com/komiko44240BB/BattleBay_tool_v1.0.git
synced 2026-01-18 16:27:29 +01:00
33 lines
774 B
C
33 lines
774 B
C
#ifndef SHIPS_H
|
|
#define SHIPS_H
|
|
#include<stdbool.h>
|
|
|
|
|
|
struct Ship{
|
|
struct Slots* loadout [5];
|
|
char* name;
|
|
float speed;
|
|
int ship_agility;
|
|
int turret_agility;
|
|
unsigned int gear_score;
|
|
unsigned int hit_points;
|
|
unsigned int defence;
|
|
};
|
|
|
|
struct Ship* initialiseShip(char* ship_name, float speed, int ship_agility, int turet_agility, unsigned int hit_points, unsigned int defence);
|
|
void setUpShip(struct Ship* s, unsigned int gear[5][2]);
|
|
|
|
bool addOject(struct Ship* s, struct Object* o);
|
|
void removeObject(struct Ship* s, int pos);
|
|
|
|
bool canAddObject(struct Ship* s,struct Object* o);
|
|
|
|
void printShipStats(struct Ship* s);
|
|
void printLoadout(struct Ship* s);
|
|
void printShipName(struct Ship* s);
|
|
|
|
void deleteShip(struct Ship* s);
|
|
|
|
|
|
#endif //SHIPS_H
|