Class: PathfinderDeckBuilder::TrackedResourceCard

Inherits:
Card
  • Object
show all
Defined in:
lib/tracked_resource_card.rb

Instance Attribute Summary

Attributes inherited from Card

#class_cards, #class_path, #index

Instance Method Summary collapse

Methods inherited from Card

#initialize, #set_multiple_character_path, #set_paths, #set_single_character_path

Constructor Details

This class inherits a constructor from PathfinderDeckBuilder::Card

Instance Method Details

#assembled_card(path) ⇒ Object



14
15
16
# File 'lib/tracked_resource_card.rb', line 14

def assembled_card(path)
  super
end

#create_card(index = nil) ⇒ Object



6
7
8
# File 'lib/tracked_resource_card.rb', line 6

def create_card(index=nil)
  super
end

#set_class_pathObject



10
11
12
# File 'lib/tracked_resource_card.rb', line 10

def set_class_path
  @class_path = @tracked_resource_path
end

#static_contentObject



18
19
20
21
22
23
24
25
# File 'lib/tracked_resource_card.rb', line 18

def static_content
  {
    "count": 1,
    "color": "purple",
    "title": "Tracked Resource",
    "icon": "checkbox-tree"
  }
end

#variable_content(path) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/tracked_resource_card.rb', line 27

def variable_content(path)
  {
    "contents": [
      "text | #{path["name"]}",
      "fill",
      "section | Charges",
      "boxes | #{path["max"]} | 2.5"
    ]
  }
end