cleanup some pointless file

This commit is contained in:
Tenari
2026-03-27 18:34:25 -05:00
parent fcb877c7c2
commit dec6b2ea5e
4 changed files with 26 additions and 28 deletions
+2 -1
View File
@@ -9,8 +9,9 @@
#include <string.h>
//#include <math.h>
#include "base/impl.c"
#include "shared.h"
#include "lib/network.c"
#include "render.c"
#include "lib/tui.c"
#include "string_chunk.c"
//#include "assets/asset1.h"
//#include "assets/asset2.h"
-26
View File
@@ -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
View File
@@ -14,7 +14,7 @@
#include "base/impl.c"
#define NET_OUTGOING_MESSAGE_QUEUE_LEN 64
#include "lib/network.c"
#include "render.c"
#include "lib/tui.c"
#include "string_chunk.c"
///// CONSTANTS
+23
View File
@@ -16,6 +16,9 @@
#define MAX_PASSENGER_JOB_PRICE (10000)
#define MAX_PASSENGER_BERTHS (8)
#define AUCTION_COMMODITY_CUTOFF (7)
#define MAX_SCREEN_HEIGHT 300
#define MAX_SCREEN_WIDTH 800
#define AUCTION_PRICE_START_MULTIPLE (12)
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);
}
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