Class: PFM::Ribbon
Overview
Class defining a ribbon that can be given to creatures
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
Id of the ribbon.
-
#symbol ⇒ Symbol
readonly
Symbol of the ribbon.
Instance Method Summary collapse
-
#description ⇒ String
Get the ribbon description.
-
#gives_title? ⇒ Boolean
Tell if the ribbon has an associated title it can give to a creature.
-
#initialize(symbol) ⇒ Ribbon
constructor
Create a new ribbon.
-
#name ⇒ String
Get the ribbon name.
-
#sprite_name ⇒ String
Get the name of the sprite associated to the ribbon.
-
#title ⇒ String
Get the title given by the ribbon.
Constructor Details
#initialize(symbol) ⇒ Ribbon
Create a new ribbon
2262 2263 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2262 def initialize(symbol) end |
Instance Attribute Details
#id ⇒ Integer (readonly)
Id of the ribbon
2256 2257 2258 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2256 def id @id end |
#symbol ⇒ Symbol (readonly)
Symbol of the ribbon
2259 2260 2261 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2259 def symbol @symbol end |
Instance Method Details
#description ⇒ String
Get the ribbon description
2270 2271 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2270 def description end |
#gives_title? ⇒ Boolean
Tell if the ribbon has an associated title it can give to a creature
2282 2283 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2282 def gives_title? end |
#name ⇒ String
Get the ribbon name
2266 2267 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2266 def name end |
#sprite_name ⇒ String
Get the name of the sprite associated to the ribbon
2278 2279 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2278 def sprite_name end |
#title ⇒ String
Get the title given by the ribbon
2274 2275 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2274 def title end |