I\'m implementing a card game in C. There are lots of types of cards and each has a bunch of information, including some actions that will need to be individually scripted assoc
Your approach is right and will work. Your function pointer syntax is right, except that you don't use parameter names - just types:
int (*do_actions)(struct GAME_STATE *, int, int);