cleanup some pointless file
This commit is contained in:
+2
-1
@@ -9,8 +9,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
//#include <math.h>
|
//#include <math.h>
|
||||||
#include "base/impl.c"
|
#include "base/impl.c"
|
||||||
|
#include "shared.h"
|
||||||
#include "lib/network.c"
|
#include "lib/network.c"
|
||||||
#include "render.c"
|
#include "lib/tui.c"
|
||||||
#include "string_chunk.c"
|
#include "string_chunk.c"
|
||||||
//#include "assets/asset1.h"
|
//#include "assets/asset1.h"
|
||||||
//#include "assets/asset2.h"
|
//#include "assets/asset2.h"
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
#include "shared.h"
|
|
||||||
#include "lib/tui.c"
|
|
||||||
|
|
||||||
#define MAX_SCREEN_HEIGHT 300
|
|
||||||
#define MAX_SCREEN_WIDTH 800
|
|
||||||
|
|
||||||
fn str strForPlanet(PlanetType type) {
|
|
||||||
switch(type) {
|
|
||||||
case PlanetTypeNull:
|
|
||||||
return " ";
|
|
||||||
case PlanetTypeAsteroid:
|
|
||||||
return "🪨";
|
|
||||||
case PlanetTypeEarth:
|
|
||||||
return "🌎";
|
|
||||||
case PlanetTypeGas:
|
|
||||||
return "🪐";
|
|
||||||
case PlanetTypeMoon:
|
|
||||||
return "🌘";
|
|
||||||
case PlanetTypeStation:
|
|
||||||
return "\xF0\x9F\x9B\xB0 ";
|
|
||||||
case PlanetType_Count:
|
|
||||||
assert(false && "this should never happen");
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
#include "base/impl.c"
|
#include "base/impl.c"
|
||||||
#define NET_OUTGOING_MESSAGE_QUEUE_LEN 64
|
#define NET_OUTGOING_MESSAGE_QUEUE_LEN 64
|
||||||
#include "lib/network.c"
|
#include "lib/network.c"
|
||||||
#include "render.c"
|
#include "lib/tui.c"
|
||||||
#include "string_chunk.c"
|
#include "string_chunk.c"
|
||||||
|
|
||||||
///// CONSTANTS
|
///// CONSTANTS
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
#define MAX_PASSENGER_JOB_PRICE (10000)
|
#define MAX_PASSENGER_JOB_PRICE (10000)
|
||||||
#define MAX_PASSENGER_BERTHS (8)
|
#define MAX_PASSENGER_BERTHS (8)
|
||||||
#define AUCTION_COMMODITY_CUTOFF (7)
|
#define AUCTION_COMMODITY_CUTOFF (7)
|
||||||
|
#define MAX_SCREEN_HEIGHT 300
|
||||||
|
#define MAX_SCREEN_WIDTH 800
|
||||||
|
|
||||||
#define AUCTION_PRICE_START_MULTIPLE (12)
|
#define AUCTION_PRICE_START_MULTIPLE (12)
|
||||||
|
|
||||||
typedef enum ShipType {
|
typedef enum ShipType {
|
||||||
@@ -515,4 +518,24 @@ fn u32 oxyCostForTravel(PlayerShip* ship, Pos2 current, Pos2 dest) {
|
|||||||
return (x_distance + y_distance) * oxy_per_person_per_dist * (shipTotalPassengers(*ship) + 1);
|
return (x_distance + y_distance) * oxy_per_person_per_dist * (shipTotalPassengers(*ship) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn str strForPlanet(PlanetType type) {
|
||||||
|
switch(type) {
|
||||||
|
case PlanetTypeNull:
|
||||||
|
return " ";
|
||||||
|
case PlanetTypeAsteroid:
|
||||||
|
return "🪨";
|
||||||
|
case PlanetTypeEarth:
|
||||||
|
return "🌎";
|
||||||
|
case PlanetTypeGas:
|
||||||
|
return "🪐";
|
||||||
|
case PlanetTypeMoon:
|
||||||
|
return "🌘";
|
||||||
|
case PlanetTypeStation:
|
||||||
|
return "\xF0\x9F\x9B\xB0 ";
|
||||||
|
case PlanetType_Count:
|
||||||
|
assert(false && "this should never happen");
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif //GAMESHARED_H
|
#endif //GAMESHARED_H
|
||||||
|
|||||||
Reference in New Issue
Block a user