Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ItemCounter

Index

Constructors

  • new ItemCounter(game: Game, group: Group, x: number, y: number, on_change: Function): ItemCounter

Properties

active: boolean
active_bar_graphics: Graphics
available_items_count: number
current_quantity: number
disabled_bar_graphics: Graphics
disabled_count: number
game: Game
graphics: Graphics
group: Group
inactive_bar_graphics: Graphics
internal_group: Group
on_change: Function
x: number
y: number

Methods

  • activate(): void
  • advance_step(step: number): void
  • clear(): void
  • config(available_items_count: number, initial_quantity: number, disabled_count?: number): void
  • create_grid(): void
  • create_inactive_bar(): void
  • deactivate(): void

Generated using TypeDoc