#ifndef PRIV_ENTRIES_H #define PRIV_ENTRIES_H #include "actions.h" #include "entry.h" /* TODO general make difference between action / action + and action x */ struct entry_t white_magic_entries[] = { { .name = "Cure", .children_cnt = 0, .action = { .f = cast_cure, .data = NULL, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Cure +", .children_cnt = 0, .action = { .f = cast_cure, .data = NULL, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Esuna", .children_cnt = 0, .action = { .f = esuna, .data = NULL, .target = TARGET_SINGLE, }, }, }; struct entry_t black_magic_entries[] = { { .name = "Fire", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_FIRE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Fire +", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_FIRE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Fire x", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_FIRE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Ice -", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_ICE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Ice +", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_ICE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Ice x", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_ICE }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Thunder", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_THUNDER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Thunder +", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_THUNDER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Thunder x", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_THUNDER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Water", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_WATER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Water + ", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_WATER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Water x", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_WATER }, .target = TARGET_SINGLE | TARGET_TEAM, }, }, { .name = "Choc", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_NONE }, .target = TARGET_SINGLE, }, }, { .name = "Ultima", .children_cnt = 0, .action = { .f = cast_element, .data = (enum element_t []) { ELEM_NONE }, .target = TARGET_TEAM, }, }, { .name = "Cyanure", .children_cnt = 0, .action = { .f = cyanure, .data = NULL, .target = TARGET_SINGLE, }, }, }; struct entry_t object_entries[] = { { .name = "Potion", .children_cnt = 0, .action = { .f = use_potion, .data = (int []) { POTION }, .target = TARGET_SINGLE, }, }, { .name = "Potion +", .children_cnt = 0, .action = { .f = use_potion, .data = (int []) { POTIONPLUS }, .target = TARGET_SINGLE, }, }, { .name = "Ether", .children_cnt = 0, .action = { .f = use_ether, .data = (int []) { ETHER }, .target = TARGET_SINGLE, }, }, { .name = "Ether + ", .children_cnt = 0, .action = { .f = use_ether, .data = (int []) { ETHERPLUS }, .target = TARGET_SINGLE, }, }, }; struct entry_t action_entries_g[] = { { .name = "Attack", .children_cnt = 0, .action = { .f = attack, .data = NULL, .target = TARGET_SINGLE, }, }, { .name = "White Magic", .children = white_magic_entries, .children_cnt = countof(white_magic_entries), }, { .name = "Black Magic", .children = black_magic_entries, .children_cnt = countof(black_magic_entries), }, { .name = "Use", .children = object_entries, .children_cnt = countof(object_entries), }, { .name = "Defend", .children_cnt = 0, .action = { .f = defend, .data = NULL, .target = TARGET_SELF, }, }, }; #endif /* PRIV_ENTRIES_H */