Use prettynames.h
This commit is contained in:
@@ -1,27 +1,10 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "prettynames.h"
|
||||
#include "random.h"
|
||||
#include "world.h"
|
||||
|
||||
static const char *quadrant_type_name(quadrant_type type) {
|
||||
switch (type) {
|
||||
case Q_EMPTY: return "Empty";
|
||||
case Q_ASTEROID_FIELD: return "Asteroid field";
|
||||
case Q_STAR_SYSTEM: return "Star system";
|
||||
case Q_NEBULA: return "Nebula";
|
||||
case Q_BLACK_HOLE: return "Black hole";
|
||||
case Q_WHITE_HOLE: return "White hole";
|
||||
case Q_PULSAR: return "Pulsar";
|
||||
case Q_QUASAR: return "Quasar";
|
||||
case Q_SUPERNOVA: return "Supernova";
|
||||
case Q_ANOMALY: return "Anomaly";
|
||||
case Q_SINGULARITY: return "Singularity";
|
||||
case Q_COUNT: return "Count";
|
||||
default: return "Undefined";
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
uint32_t seed;
|
||||
printf("Enter seed: ");
|
||||
|
||||
Reference in New Issue
Block a user