Defining get and set functions for ship.h and projectile.h