Initial setup: Initialized Git repository and committed existing project structure files. Ready for conceptual research phase.

This commit is contained in:
OpenClaw 2026-07-12 04:04:43 +02:00
parent 4dedf5943b
commit ecaaf1d652
No known key found for this signature in database

View file

@ -2,45 +2,19 @@
#define OK_TYPES_H #define OK_TYPES_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h>
#define OK_MAP_W 64
#define OK_MAP_H 48
#define OK_MAX_UNITS 256
typedef enum {
OK_FACTION_SURVIVORS = 0,
OK_FACTION_SCAVENGERS = 1
} OkFaction;
typedef enum {
OK_UNIT_INFANTRY = 0,
OK_UNIT_VEHICLE = 1
} OkUnitKind;
// Definition für einen Koordinatenpunkt
typedef struct { typedef struct {
int x, y; int x;
OkFaction faction; int y;
OkUnitKind kind; } Location;
int hp;
int hp_max;
int target; /* unit index or -1 */
bool alive;
} OkUnit;
// Definition für eine Einheit
typedef struct { typedef struct {
uint8_t tile[OK_MAP_H][OK_MAP_W]; /* 0 empty, 1 blocked, 2 resource */ int id;
} OkMap; Location position;
int health;
// Weitere Eigenschaften für die kkknd2-spezifische Logik kommen hier hinzu
} Unit;
typedef struct { #endif // OK_TYPES_H
OkMap map;
OkUnit units[OK_MAX_UNITS];
int unit_count;
int selected;
bool running;
bool survivors_win;
bool scavengers_win;
uint32_t tick;
} OkGame;
#endif