API for Magic Coding in C
Args in all caps should use special constants as the arguments (see manalink.h for a list of constants)
Card Status Functions
- is_tapped(player, card)
- has_creature_type(player, card, creature_type) [unimplemented]
- has_card_type(player, card, CARD_TYPE) [unimplemented]
- has_color(player, card, COLOR) [unimplemented]
Game State Functions
- count_graveyard(player)
- has_threshold(player)
- has_mana(player, COLOR)
- is_artifact_in_play() [unimplemented]
- does_player_control_artifact(player) [unimplemented]
Cost Paying Functions
- charge_mana(player, COLOR)
- tap_card(player, card)
Targeting Functions
- target_player() [unimplemented]
- target_creature() [unimplemented]
Creature Abilities
- check_legend_rule(player, card, event) [I think this should be renamed legendary, since the sub actually kills the legend]
- vigilence(player, card, event) [unimplemented]
- haste(player, card, event) [unimplemented]
- lifelink(player, card, event) [unimplemented]
Actions
- add_one_mana_any_color(player)
- draw_a_card(player)
- gain_life(player, amount)
- kill_card(player, card, KILL_METHOD)
- produce_mana(player, COLOR, amount)
Random Stuff
- affect_me(player, card)
