Class: RuneRb::Game::Entity::Commands::Descend

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

Overview

Moves the player 1 plane lower

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

Since:

  • 0.9.3


5
6
7
# File 'app/game/entity/commands/descend.rb', line 5

def execute
  @assets[:context].teleport(@assets[:context].position[:current].move(0, 0, -1))
end