Documentation ¶
Index ¶
- type Artifact
- func (artifact *Artifact) AddPower(power Power)
- func (artifact *Artifact) Cost() int
- func (artifact *Artifact) DefenseBonus() int
- func (artifact *Artifact) MeleeBonus() int
- func (artifact *Artifact) RangedAttackBonus() int
- func (artifact *Artifact) RemovePower(remove Power)
- func (artifact *Artifact) ResistanceBonus() int
- type ArtifactSlot
- type ArtifactType
- type CreationScreen
- type Power
- type PowerAttack
- type PowerDefense
- type PowerMovement
- type PowerResistance
- type PowerSpellCharges
- type PowerSpellSave
- type PowerSpellSkill
- type PowerToHit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { Type ArtifactType Image int Name string Powers []Power }
func ShowCreateArtifactScreen ¶
func ShowCreateArtifactScreen(yield coroutine.YieldFunc, cache *lbx.LbxCache, creationType CreationScreen, draw *func(*ebiten.Image)) (*Artifact, bool)
returns the artifact that was created and true, * otherwise false for cancelled
func (*Artifact) DefenseBonus ¶
func (*Artifact) MeleeBonus ¶
func (*Artifact) RangedAttackBonus ¶
func (*Artifact) RemovePower ¶
func (*Artifact) ResistanceBonus ¶
type ArtifactSlot ¶
type ArtifactSlot int
const ( ArtifactSlotMeleeWeapon ArtifactSlot = iota ArtifactSlotRangedWeapon ArtifactSlotMagicWeapon ArtifactSlotAnyWeapon ArtifactSlotArmor ArtifactSlotJewelry )
func (ArtifactSlot) CompatibleWith ¶
func (slot ArtifactSlot) CompatibleWith(kind ArtifactType) bool
func (ArtifactSlot) ImageIndex ¶
func (slot ArtifactSlot) ImageIndex() int
the index in itemisc.lbx for this slot
type ArtifactType ¶
type ArtifactType int
const ( ArtifactTypeNone ArtifactType = iota ArtifactTypeSword ArtifactTypeMace ArtifactTypeAxe ArtifactTypeBow ArtifactTypeStaff ArtifactTypeWand ArtifactTypeMisc ArtifactTypeShield ArtifactTypeChain ArtifactTypePlate )
func (ArtifactType) Name ¶
func (a ArtifactType) Name() string
type CreationScreen ¶
type CreationScreen int
the screen can be invoked as either the 'Enchant Item' spell or 'Create Artifact'
const ( CreationEnchantItem CreationScreen = iota CreationCreateArtifact )
type PowerAttack ¶
type PowerAttack struct {
Amount int
}
func (*PowerAttack) Cost ¶
func (p *PowerAttack) Cost() int
func (*PowerAttack) GetAmount ¶
func (p *PowerAttack) GetAmount() int
func (*PowerAttack) String ¶
func (p *PowerAttack) String() string
type PowerDefense ¶
type PowerDefense struct {
Amount int
}
func (*PowerDefense) Cost ¶
func (p *PowerDefense) Cost() int
func (*PowerDefense) GetAmount ¶
func (p *PowerDefense) GetAmount() int
func (*PowerDefense) String ¶
func (p *PowerDefense) String() string
type PowerMovement ¶
type PowerMovement struct {
Amount int
}
func (*PowerMovement) Cost ¶
func (p *PowerMovement) Cost() int
func (*PowerMovement) GetAmount ¶
func (p *PowerMovement) GetAmount() int
func (*PowerMovement) String ¶
func (p *PowerMovement) String() string
type PowerResistance ¶
type PowerResistance struct {
Amount int
}
func (*PowerResistance) Cost ¶
func (p *PowerResistance) Cost() int
func (*PowerResistance) GetAmount ¶
func (p *PowerResistance) GetAmount() int
func (*PowerResistance) String ¶
func (p *PowerResistance) String() string
type PowerSpellCharges ¶
func (*PowerSpellCharges) Cost ¶
func (p *PowerSpellCharges) Cost() int
func (*PowerSpellCharges) GetAmount ¶
func (p *PowerSpellCharges) GetAmount() int
func (*PowerSpellCharges) String ¶
func (p *PowerSpellCharges) String() string
type PowerSpellSave ¶
type PowerSpellSave struct {
Amount int
}
func (*PowerSpellSave) Cost ¶
func (p *PowerSpellSave) Cost() int
func (*PowerSpellSave) GetAmount ¶
func (p *PowerSpellSave) GetAmount() int
func (*PowerSpellSave) String ¶
func (p *PowerSpellSave) String() string
type PowerSpellSkill ¶
type PowerSpellSkill struct {
Amount int
}
func (*PowerSpellSkill) Cost ¶
func (p *PowerSpellSkill) Cost() int
func (*PowerSpellSkill) GetAmount ¶
func (p *PowerSpellSkill) GetAmount() int
func (*PowerSpellSkill) String ¶
func (p *PowerSpellSkill) String() string
type PowerToHit ¶
type PowerToHit struct {
Amount int
}
func (*PowerToHit) Cost ¶
func (p *PowerToHit) Cost() int
func (*PowerToHit) GetAmount ¶
func (p *PowerToHit) GetAmount() int
func (*PowerToHit) String ¶
func (p *PowerToHit) String() string
Click to show internal directories.
Click to hide internal directories.