Freeciv-3.3
|
Public Member Functions | |
fix_enabler_item (struct action_enabler *enabler) | |
virtual | ~fix_enabler_item () |
void | close () |
const void * | item () |
void * | item_working_copy () |
const char * | name () |
struct req_vec_problem * | find_next_problem (void) |
void | apply_accepted_changes () |
void | undo_accepted_changes () |
int | num_vectors () |
requirement_vector_namer | vector_namer () |
requirement_vector_by_number | vector_getter () |
bool | vector_in_item (const struct requirement_vector *vec) |
Public Member Functions inherited from req_vec_fix_item | |
virtual | ~req_vec_fix_item () |
Private Attributes | |
struct action_enabler * | current_enabler |
struct action_enabler * | local_copy |
QString | my_name |
Definition at line 42 of file tab_enablers.cpp.
|
explicit |
Construct fix_enabler_item to help req_vec_fix with the action enabler unique stuff.
Definition at line 450 of file tab_enablers.cpp.
|
virtual |
Destructor for fix_enabler_item
Definition at line 473 of file tab_enablers.cpp.
|
virtual |
Do all the changes the user has accepted to the ruleset item. N.B.: This could be called before all problems are fixed if the user wishes to try to fix problems by hand or to come back and fix the remaining problems later.
Implements req_vec_fix_item.
Definition at line 538 of file tab_enablers.cpp.
|
virtual |
Tell the helper that it has outlived its usefulnes.
Implements req_vec_fix_item.
Definition at line 481 of file tab_enablers.cpp.
|
virtual |
Returns the next detected requirement vector problem for the ruleset item or nullptr if no fix is found to be needed. Caller needs to free the result with req_vec_problem_free()
Implements req_vec_fix_item.
Definition at line 521 of file tab_enablers.cpp.
Returns a pointer to the ruleset item.
Implements req_vec_fix_item.
Definition at line 490 of file tab_enablers.cpp.
|
virtual |
Returns a pointer to the working copy of the ruleset item.
Implements req_vec_fix_item.
Definition at line 499 of file tab_enablers.cpp.
Returns a name to describe the item, hopefully good enough to distinguish it from other items. Must be short enough for a quick mention.
Implements req_vec_fix_item.
Definition at line 510 of file tab_enablers.cpp.
|
virtual |
Returns the number of requirement vectors in this item.
Implements req_vec_fix_item.
Definition at line 570 of file tab_enablers.cpp.
|
virtual |
Undo all the changes the user has accepted to the ruleset item. N.B.: This could be called after all problems are fixed if the user wishes to see all problems and try to fix them by hand.
Implements req_vec_fix_item.
Definition at line 554 of file tab_enablers.cpp.
|
virtual |
Returns a function pointer to a function that returns a writable pointer to the specified requirement vector in the specified parent item.
Implements req_vec_fix_item.
Definition at line 594 of file tab_enablers.cpp.
|
virtual |
Check if the specified vector belongs to this item
vec | the requirement vector that may belong to this item. |
Implements req_vec_fix_item.
Definition at line 605 of file tab_enablers.cpp.
|
virtual |
Returns a function pointer to a function that names this item kind's requirement vector number number. Useful when there is more than one requirement vector.
Implements req_vec_fix_item.
Definition at line 582 of file tab_enablers.cpp.
|
private |
Definition at line 61 of file tab_enablers.cpp.
Referenced by apply_accepted_changes(), fix_enabler_item(), item(), undo_accepted_changes(), and vector_in_item().
|
private |
Definition at line 62 of file tab_enablers.cpp.
Referenced by apply_accepted_changes(), find_next_problem(), fix_enabler_item(), item_working_copy(), undo_accepted_changes(), and ~fix_enabler_item().
|
private |
Definition at line 63 of file tab_enablers.cpp.
Referenced by fix_enabler_item(), and name().