enum

RPG::Direction

Inherits Enum < Comparable < Value < Object

Constants

Up = 0
UpRight = 1
Right = 2
DownRight = 3
Down = 4
DownLeft = 5
Left = 6
UpLeft = 7

Instance methods

down?

Returns true if this enum value equals Down

Source
down_any?
Source
down_left?

Returns true if this enum value equals DownLeft

Source
down_right?

Returns true if this enum value equals DownRight

Source
left?

Returns true if this enum value equals Left

Source
left_any?
Source
left_or_down?
Source
left_or_up?
Source
right?

Returns true if this enum value equals Right

Source
right_any?
Source
right_or_down?
Source
right_or_up?
Source
up?

Returns true if this enum value equals Up

Source
up_any?
Source
up_left?

Returns true if this enum value equals UpLeft

Source
up_right?

Returns true if this enum value equals UpRight

Source