Documentation ¶
Index ¶
- type Belt
- type Class
- type Corpse
- type Data
- type HoverData
- type Inventory
- type Item
- func (i Item) Desc() item.Description
- func (i Item) FindStat(id stat.ID, layer int) (stat.Data, bool)
- func (i Item) IsFromQuest() bool
- func (i Item) IsHealingPotion() bool
- func (i Item) IsManaPotion() bool
- func (i Item) IsPotion() bool
- func (i Item) IsRejuvPotion() bool
- func (i Item) Type() item.Type
- type KeyBinding
- type KeyBindings
- type Level
- type Monster
- type MonsterFilter
- type MonsterType
- type Monsters
- type NPC
- type NPCs
- type Object
- type Objects
- type OpenMenus
- type PlayerUnit
- func (pu PlayerUnit) CastingFrames() int
- func (pu PlayerUnit) FindStat(id stat.ID, layer int) (stat.Data, bool)
- func (pu PlayerUnit) HPPercent() int
- func (pu PlayerUnit) HasDebuff() bool
- func (pu PlayerUnit) MPPercent() int
- func (pu PlayerUnit) MaxGold() int
- func (pu PlayerUnit) TotalPlayerGold() int
- type PointOfInterest
- type Position
- type PotionType
- type Room
- type Roster
- type RosterMember
- type SkillBinding
- type UnitID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Belt ¶
func (Belt) GetFirstPotion ¶
func (b Belt) GetFirstPotion(potionType PotionType) (Position, bool)
type Data ¶
type Data struct { AreaOrigin Position Corpse Corpse Monsters Monsters // First slice represents X and second Y CollisionGrid [][]bool PlayerUnit PlayerUnit NPCs NPCs Inventory Inventory Objects Objects AdjacentLevels []Level Rooms []Room OpenMenus OpenMenus Roster Roster HoverData HoverData TerrorZones []area.ID Quests quest.Quests KeyBindings KeyBindings }
func (Data) MercHPPercent ¶
type Inventory ¶
func (Inventory) ByLocation ¶
func (i Inventory) ByLocation(locations ...item.LocationType) []Item
type Item ¶
type Item struct { ID int UnitID Name item.Name Quality item.Quality Position Position Location item.Location Ethereal bool IsHovered bool BaseStats stat.Stats Stats stat.Stats Identified bool }
func (Item) Desc ¶
func (i Item) Desc() item.Description
func (Item) IsFromQuest ¶
func (Item) IsHealingPotion ¶
func (Item) IsManaPotion ¶
func (Item) IsRejuvPotion ¶
type KeyBinding ¶
type KeyBindings ¶
type KeyBindings struct { CharacterScreen KeyBinding Inventory KeyBinding HoradricCube KeyBinding PartyScreen KeyBinding MercenaryScreen KeyBinding MessageLog KeyBinding QuestLog KeyBinding HelpScreen KeyBinding SkillTree KeyBinding SkillSpeedBar KeyBinding Skills [16]SkillBinding SelectPreviousSkill KeyBinding SelectNextSkill KeyBinding ShowBelt KeyBinding UseBelt [4]KeyBinding SwapWeapons KeyBinding Chat KeyBinding Run KeyBinding ToggleRunWalk KeyBinding StandStill KeyBinding ForceMove KeyBinding ShowItems KeyBinding ShowPortraits KeyBinding Automap KeyBinding CenterAutomap KeyBinding FadeAutomap KeyBinding PartyOnAutomap KeyBinding NamesOnAutomap KeyBinding ToggleMiniMap KeyBinding SayHelp KeyBinding SayFollowMe KeyBinding SayThisIsForYou KeyBinding SayThanks KeyBinding SaySorry KeyBinding SayBye KeyBinding SayNowYouDie KeyBinding SayRetreat KeyBinding ClearScreen KeyBinding ClearMessages KeyBinding Zoom KeyBinding LegacyToggle KeyBinding }
func (KeyBindings) KeyBindingForSkill ¶
func (kb KeyBindings) KeyBindingForSkill(skillID skill.ID) (KeyBinding, bool)
func (KeyBindings) MustKBForSkill ¶
func (kb KeyBindings) MustKBForSkill(skillID skill.ID) KeyBinding
type Monster ¶
type Monster struct { UnitID Name npc.ID IsHovered bool Position Position Stats map[stat.ID]int Type MonsterType }
func (Monster) IsMonsterRaiser ¶
IsMonsterRaiser returns true if the monster is able to spawn new monsters.
type MonsterFilter ¶
func MonsterAnyFilter ¶
func MonsterAnyFilter() MonsterFilter
func MonsterEliteFilter ¶
func MonsterEliteFilter() MonsterFilter
type MonsterType ¶
type MonsterType string
const ( // Monster Types MonsterTypeNone MonsterType = "None" MonsterTypeChampion MonsterType = "Champion" MonsterTypeMinion MonsterType = "Minion" MonsterTypeUnique MonsterType = "Unique" MonsterTypeSuperUnique MonsterType = "SuperUnique" )
type Monsters ¶
type Monsters []Monster
func (Monsters) Enemies ¶
func (m Monsters) Enemies(filters ...MonsterFilter) []Monster
type Object ¶
type Object struct { ID UnitID Name object.Name IsHovered bool Selectable bool InteractType object.InteractType Position Position Owner string }
func (Object) IsRedPortal ¶
func (Object) IsSuperChest ¶
func (Object) IsWaypoint ¶
type PlayerUnit ¶
type PlayerUnit struct { Address uintptr Name string ID UnitID Area area.ID Position Position Stats stat.Stats BaseStats stat.Stats Skills map[skill.ID]skill.Points States state.States Class Class LeftSkill skill.ID RightSkill skill.ID AvailableWaypoints []area.ID // Is only filled when WP menu is open and only for the specific selected tab }
func (PlayerUnit) CastingFrames ¶
func (pu PlayerUnit) CastingFrames() int
func (PlayerUnit) HPPercent ¶
func (pu PlayerUnit) HPPercent() int
func (PlayerUnit) HasDebuff ¶
func (pu PlayerUnit) HasDebuff() bool
func (PlayerUnit) MPPercent ¶
func (pu PlayerUnit) MPPercent() int
func (PlayerUnit) MaxGold ¶
func (pu PlayerUnit) MaxGold() int
func (PlayerUnit) TotalPlayerGold ¶
func (pu PlayerUnit) TotalPlayerGold() int
TotalPlayerGold returns the amount of gold, including inventory and player stash (excluding shared stash)
type PointOfInterest ¶
type PotionType ¶
type PotionType string
const ( HealingPotion PotionType = "HealingPotion" ManaPotion PotionType = "ManaPotion" RejuvenationPotion PotionType = "RejuvenationPotion" )
type Roster ¶
type Roster []RosterMember
func (Roster) FindByName ¶
func (r Roster) FindByName(name string) (RosterMember, bool)
type SkillBinding ¶
type SkillBinding struct { SkillID skill.ID KeyBinding }
Click to show internal directories.
Click to hide internal directories.