Class: RuneRb::Game::Entity::Commands::Position

Inherits:
RuneRb::Game::Entity::Command show all
Defined in:
app/game/entity/commands/position.rb

Overview

A command to display the current position of the player.

Since:

  • 0.9.3

Instance Method Summary collapse

Methods inherited from RuneRb::Game::Entity::Command

#initialize

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Constructor Details

This class inherits a constructor from RuneRb::Game::Entity::Command

Instance Method Details

#executeObject

Executes the Command.

Since:

  • 0.9.3


6
7
8
# File 'app/game/entity/commands/position.rb', line 6

def execute
  @assets[:context].session.write_message(:SystemTextMessage, message: "You current location is #{@assets[:context].position[:current].inspect}")
end