Class: RuneRb::Game::Entity::Graphic

Inherits:
Object
  • Object
show all
Defined in:
app/game/entity/models/graphic.rb

Overview

A Graphic that is displayed to an entity

Since:

  • 0.9.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, delay, height) ⇒ Graphic

Called when a new Graphic is created.

Parameters:

  • id (Integer)

    the id for the Graphic

  • delay (Integer)

    the delay that should occur before the Graphic is displayed

  • height (Integer)

    the height at which the Graphic will play.

Since:

  • 0.9.3


16
17
18
19
20
# File 'app/game/entity/models/graphic.rb', line 16

def initialize(id, delay, height)
  @id = id
  @delay = delay
  @height = height
end

Instance Attribute Details

#delayObject (readonly)

The delay that should occur before the Graphic is played.

Since:

  • 0.9.3


8
9
10
# File 'app/game/entity/models/graphic.rb', line 8

def delay
  @delay
end

#heightObject (readonly)

The height at which the Graphic will play.

Since:

  • 0.9.3


10
11
12
# File 'app/game/entity/models/graphic.rb', line 10

def height
  @height
end

#idObject (readonly)

The ID for the Graphic

Since:

  • 0.9.3


6
7
8
# File 'app/game/entity/models/graphic.rb', line 6

def id
  @id
end