Documentation ¶
Index ¶
- func MakeGenericContextMenu(cache *lbx.LbxCache, ui *uilib.UI, unit UnitView, disbandMessage string, ...) []*uilib.UIElement
- func MakeSmallListView(cache *lbx.LbxCache, ui *uilib.UI, stack []UnitView, title string, ...) []*uilib.UIElement
- func MakeUnitAbilitiesElements(imageCache *util.ImageCache, unit UnitView, mediumFont *font.Font, x int, ...) []*uilib.UIElement
- func MakeUnitContextMenu(cache *lbx.LbxCache, ui *uilib.UI, unit UnitView, doDisband func()) []*uilib.UIElement
- func RenderCombatImage(screen *ebiten.Image, imageCache *util.ImageCache, unit UnitView, ...)
- func RenderUnitInfoBuild(screen *ebiten.Image, imageCache *util.ImageCache, unit UnitView, ...)
- func RenderUnitInfoNormal(screen *ebiten.Image, imageCache *util.ImageCache, unit UnitView, ...)
- func RenderUnitInfoStats(screen *ebiten.Image, imageCache *util.ImageCache, unit UnitView, ...)
- func UnitDisbandMessage(unit UnitView) string
- type PortraitUnit
- type UnitView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGenericContextMenu ¶
func MakeSmallListView ¶
func MakeSmallListView(cache *lbx.LbxCache, ui *uilib.UI, stack []UnitView, title string, clicked func()) []*uilib.UIElement
list of units that shows up when you right click on an enemy unit stack
func MakeUnitContextMenu ¶
func RenderCombatImage ¶
func RenderCombatImage(screen *ebiten.Image, imageCache *util.ImageCache, unit UnitView, options ebiten.DrawImageOptions, counter uint64)
func RenderUnitInfoBuild ¶
func RenderUnitInfoNormal ¶
func RenderUnitInfoStats ¶
func UnitDisbandMessage ¶
Types ¶
type PortraitUnit ¶
type UnitView ¶
type UnitView interface { GetName() string GetTitle() string // for heroes. normal units will not have a title GetBanner() data.BannerType GetCombatLbxFile() string GetCombatIndex(units.Facing) int GetLbxFile() string GetLbxIndex() int GetCount() int GetUpkeepGold() int GetUpkeepFood() int GetUpkeepMana() int GetMovementSpeed() int GetProductionCost() int GetEnchantments() []data.UnitEnchantment GetWeaponBonus() data.WeaponBonus GetExperience() int GetExperienceData() units.ExperienceData GetBaseMeleeAttackPower() int GetMeleeAttackPower() int GetBaseRangedAttackPower() int GetRangedAttackPower() int GetRangedAttackDamageType() units.Damage GetBaseDefense() int GetDefense() int GetResistance() int GetBaseResistance() int GetHitPoints() int GetBaseHitPoints() int GetAbilities() []units.Ability GetArtifactSlots() []artifact.ArtifactSlot GetArtifacts() []*artifact.Artifact }
Click to show internal directories.
Click to hide internal directories.