1#ifndef YAZE_SRC_CLI_HANDLERS_OVERWORLD_COMMANDS_H_
2#define YAZE_SRC_CLI_HANDLERS_OVERWORLD_COMMANDS_H_
15 std::string
GetName()
const {
return "overworld-find-tile"; }
17 return "Find tiles by ID in overworld maps";
20 return "overworld-find-tile --tile <tile_id> [--format <json|text>]";
36 std::string
GetName()
const {
return "overworld-describe-map"; }
38 return "Get detailed description of an overworld map";
41 return "overworld-describe-map --screen <screen_id> [--format <json|text>]";
57 std::string
GetName()
const {
return "overworld-list-warps"; }
59 return "List all warps in overworld maps";
62 return "overworld-list-warps [--screen <screen_id>] [--format <json|text>]";
66 return absl::OkStatus();
78 std::string
GetName()
const {
return "overworld-list-sprites"; }
80 return "List all sprites in overworld maps";
83 return "overworld-list-sprites [--screen <screen_id>] [--format <json|text>]";
87 return absl::OkStatus();
99 std::string
GetName()
const {
return "overworld-get-entrance"; }
101 return "Get entrance information from overworld";
104 return "overworld-get-entrance --entrance <entrance_id> [--format <json|text>]";
120 std::string
GetName()
const {
return "overworld-tile-stats"; }
122 return "Get tile usage statistics for overworld";
125 return "overworld-tile-stats [--screen <screen_id>] [--format <json|text>]";
129 return absl::OkStatus();
The Rom class is used to load, save, and modify Rom data.
Command handler for describing overworld maps.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
Command handler for finding tiles in overworld.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
std::string GetName() const
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for getting entrance information.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetDescription() const
std::string GetUsage() const
Get the command usage string.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const
Get the command name.
Command handler for listing sprites in overworld.
std::string GetName() const
Get the command name.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
Command handler for listing warps in overworld.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
Command handler for getting tile statistics.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetName() const
Get the command name.
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetUsage() const
Get the command usage string.
std::string GetDescription() const
Utility for parsing common CLI argument patterns.
absl::Status RequireArgs(const std::vector< std::string > &required) const
Validate that required arguments are present.
Base class for CLI command handlers.
Main namespace for the application.