SierraCommands

Inherits: PopochiuCommands

Description

Defines the commands and fallback methods for the Sierra GUI.

In this GUI, players can use one of four commands to interact with objects: Walk, Look, Interact and Talk. This behavior is based on the one used in King's Quest VI and Conquests of the Longbow.


Methods

Return Type Method
void fallback()
String get_script_name() static
void interact()
void look()
void talk()
void walk()

Enumerations


Enumeration Descriptions

enum Commands

enum Commands {
    WALK,
    LOOK,
    INTERACT,
    TALK,
}

Method Descriptions

fallback

func fallback() -> void

Called by Popochiu when a command doesn't have an associated Callable. By default this calls walk().


get_script_name

static func get_script_name() -> String

Returns the identifier for this GUI command set.


interact

func interact() -> void

Called when E.current_command == Commands.INTERACT and E.command_fallback() is triggered.


look

func look() -> void

Called when E.current_command == Commands.LOOK and E.command_fallback() is triggered.


talk

func talk() -> void

Called when E.current_command == Commands.TALK and E.command_fallback() is triggered.


walk

func walk() -> void

Called when E.current_command == Commands.WALK and E.command_fallback() is triggered.

Makes the character walk to the clicked PopochiuClickable.