sw-battle-test-c

Interesting test task in C instead of C++
git clone git://bsandro.tech/sw-battle-test-c
Log | Files | Refs | README

actions.h (238B)


      1 #pragma once
      2 
      3 struct Entity; // fwd
      4 struct World; // fwd
      5 
      6 typedef bool (Actions_Run)(struct Entity *e, struct World *w);
      7 
      8 struct Actions_Item {
      9     Actions_Run *run;
     10 };
     11 
     12 typedef struct Actions {
     13     struct Actions_Item *items;
     14 } Actions;