Freeciv-3.2
|
#include <req_vec_fix.h>
Public Member Functions | |
virtual void | close ()=0 |
virtual const void * | item ()=0 |
virtual void * | item_working_copy ()=0 |
virtual const char * | name ()=0 |
virtual struct req_vec_problem * | find_next_problem ()=0 |
virtual void | apply_accepted_changes ()=0 |
virtual void | undo_accepted_changes ()=0 |
virtual int | num_vectors ()=0 |
virtual requirement_vector_namer | vector_namer ()=0 |
virtual requirement_vector_by_number | vector_getter ()=0 |
virtual bool | vector_in_item (const struct requirement_vector *vec)=0 |
virtual | ~req_vec_fix_item () |
Ruleset entity specific methods for the ruleset item having its requirements fixed.
Definition at line 48 of file req_vec_fix.h.
|
inlinevirtual |
Trivial destructor
Definition at line 130 of file req_vec_fix.h.
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().
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().
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().
Returns a pointer to the working copy of the ruleset item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::apply_solution().
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().
Returns the number of requirement vectors in this item.
Implemented in fix_enabler_item.
Referenced by req_vec_fix::accept_applied_solutions().
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_req_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().