MCPcopy Create free account
hub / github.com/EasyRPG/Player / IsCurrentActionEnabled

Method IsCurrentActionEnabled

src/window_settings.h:93–97  ·  view source on GitHub ↗

@return true if the index points to an enabled action */

Source from the content-addressed store, hash-verified

91
92 /** @return true if the index points to an enabled action */
93 bool IsCurrentActionEnabled() const {
94 return (index >= 0
95 && index < static_cast<int>(GetFrame().options.size())
96 && static_cast<bool>(GetFrame().options[index].action));
97 }
98
99 /** Execute the action pointed to by index */
100 Option& GetCurrentOption() {

Callers 1

UpdateOptionsMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected