![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Ruleset entity specific methods for the ruleset item having its requirements fixed. More...
#include <req_vec_fix.h>
Inheritance diagram for req_vec_fix_item:Public Member Functions | |
| virtual void | close ()=0 |
| Tell the helper that it has outlived its usefulness. More... | |
| virtual const void * | item ()=0 |
| Returns a pointer to the ruleset item. More... | |
| virtual void * | item_working_copy ()=0 |
| Returns a pointer to the working copy of the ruleset item. More... | |
| virtual const char * | name ()=0 |
| Returns a name to describe the item, hopefully good enough to distinguish it from other items. More... | |
| virtual struct req_vec_problem * | find_next_problem ()=0 |
| Returns the next detected requirement vector problem for the ruleset item or nullptr if no fix is found to be needed. More... | |
| virtual void | apply_accepted_changes ()=0 |
| Do all the changes the user has accepted to the ruleset item. More... | |
| virtual void | undo_accepted_changes ()=0 |
| Undo all the changes the user has accepted to the ruleset item. More... | |
| virtual int | num_vectors ()=0 |
| Returns the number of requirement vectors in this item. More... | |
| virtual requirement_vector_namer | vector_namer ()=0 |
| Returns a function pointer to a function that names this item kind's requirement vector number number. More... | |
| virtual requirement_vector_by_number | vector_getter ()=0 |
| Returns a function pointer to a function that returns a writable pointer to the specified requirement vector in the specified parent item. More... | |
| virtual bool | vector_in_item (const struct requirement_vector *vec)=0 |
| Check if the specified vector belongs to this item. More... | |
Ruleset entity specific methods for the ruleset item having its requirements fixed.
Definition at line 44 of file req_vec_fix.h.
|
pure 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.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::accept_applied_solutions().
|
pure virtual |
Tell the helper that it has outlived its usefulness.
Implemented in fix_enabler_item.
Referenced by ruledit_gui::open_req_vec_fix(), and req_vec_fix::~req_vec_fix().
|
pure virtual |
Returns the next detected requirement vector problem for the ruleset item or nullptr if no fix is found to be needed.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::refresh().
|
pure virtual |
Returns a pointer to the ruleset item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::accept_applied_solutions(), req_vec_fix::item(), and ruledit_gui::open_req_vec_fix().
|
pure virtual |
Returns a pointer to the working copy of the ruleset item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::apply_solution().
|
pure virtual |
Returns a name to describe the item, hopefully good enough to distinguish it from other items.
Must be short enough for a quick mention.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::apply_solution(), and req_vec_fix_problem::req_vec_fix_problem().
|
pure virtual |
Returns the number of requirement vectors in this item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::accept_applied_solutions().
|
pure 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.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::reject_applied_solutions().
|
pure virtual |
Returns a function pointer to a function that returns a writable pointer to the specified requirement vector in the specified parent item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::accept_applied_solutions(), and req_vec_fix::apply_solution().
|
pure virtual |
Check if the specified vector belongs to this item.
| vec | the requirement vector that may belong to this item. |
Implemented in fix_enabler_item.
Referenced by req_vec_fix::incoming_rec_vec_change().
|
pure 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.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::apply_solution(), and req_vec_fix_problem::req_vec_fix_problem().