inventory

package
v0.0.0-...-c30d63a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	NewRodAcquired    bool
	NewReelAcquired   bool
	NewLineAcquired   bool
	NewMagnetAcquired bool
	NewBootsAcquired  bool
	NewElecAcquired   bool
	NewRepAcquired    bool
	// contains filtered or unexported fields
}

func (*Inventory) AddItem

func (i *Inventory) AddItem(item Item)

func (*Inventory) AddKeyItem

func (i *Inventory) AddKeyItem(keyItem KeyItem)

func (*Inventory) AddMaterial

func (i *Inventory) AddMaterial(name string, amount int)

func (*Inventory) GetItems

func (i *Inventory) GetItems() []Item

func (*Inventory) GetKeyItems

func (i *Inventory) GetKeyItems() []KeyItem

func (*Inventory) GetKeyItemsByType

func (i *Inventory) GetKeyItemsByType(typeOfKeyItemRequired string) []KeyItem

func (*Inventory) GetMaterials

func (i *Inventory) GetMaterials() map[string]int

func (*Inventory) InitMaterials

func (i *Inventory) InitMaterials()

func (*Inventory) RemoveAllItemWithName

func (i *Inventory) RemoveAllItemWithName(name string) []map[string]RawMaterial

func (*Inventory) RemoveMaterial

func (i *Inventory) RemoveMaterial(name string, amount int)

func (*Inventory) RemoveOneItemWithName

func (i *Inventory) RemoveOneItemWithName(name string) map[string]RawMaterial

func (*Inventory) ResetMaterials

func (i *Inventory) ResetMaterials()

func (*Inventory) SalvageAllItems

func (i *Inventory) SalvageAllItems(name string)

func (*Inventory) SalvageOneItem

func (i *Inventory) SalvageOneItem(name string)

type Item

type Item struct {
	// contains filtered or unexported fields
}

func (*Item) AddModifier

func (i *Item) AddModifier(name string, amount float64)

func (*Item) AddRawMaterial

func (i *Item) AddRawMaterial(name string, min, max int)

func (*Item) GetDepth

func (i *Item) GetDepth() float64

func (*Item) GetMaterials

func (i *Item) GetMaterials() map[string]RawMaterial

func (*Item) GetName

func (i *Item) GetName() string

func (*Item) GetRarity

func (i *Item) GetRarity() float64

func (*Item) GetRarityScale

func (i *Item) GetRarityScale() float64

func (*Item) Init

func (i *Item) Init()

func (*Item) SetDepth

func (i *Item) SetDepth(depth float64)

func (*Item) SetName

func (i *Item) SetName(name string)

func (*Item) SetRarity

func (i *Item) SetRarity(rarity float64)

func (*Item) SetRarityScale

func (i *Item) SetRarityScale(rarityScale float64)

type KeyItem

type KeyItem struct {
	// contains filtered or unexported fields
}

func (*KeyItem) GetCraftingRecipe

func (k *KeyItem) GetCraftingRecipe() map[string]float64

func (*KeyItem) GetKeyItemImage

func (k *KeyItem) GetKeyItemImage() *ebiten.Image

func (*KeyItem) GetKeyItemModifiers

func (k *KeyItem) GetKeyItemModifiers() KeyItemModifiers

func (*KeyItem) GetKeyItemName

func (k *KeyItem) GetKeyItemName() string

func (*KeyItem) GetKeyItemType

func (k *KeyItem) GetKeyItemType() string

func (*KeyItem) Init

func (k *KeyItem) Init(name, keyItemType string, modifiers KeyItemModifiers, materialsRequiredForCraft map[string]float64, keyItemImage *ebiten.Image)

type KeyItemModifiers

type KeyItemModifiers struct {
	ModifierName  string
	ModifierValue float64
}

type Material

type Material struct {
	// contains filtered or unexported fields
}

func (*Material) GetMaterial

func (m *Material) GetMaterial() Material

type RawMaterial

type RawMaterial struct {
	// contains filtered or unexported fields
}

func (*RawMaterial) GetAmount

func (r *RawMaterial) GetAmount() int

func (*RawMaterial) RandomiseAmount

func (r *RawMaterial) RandomiseAmount()

func (*RawMaterial) SetMinAndMax

func (r *RawMaterial) SetMinAndMax(min, max int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL