@return true if the index points to an enabled action */
| 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() { |