Documentation
¶
Index ¶
- Constants
- Variables
- func GetMagicColor(magic MagicType) color.RGBA
- type Ability
- type AbilityType
- type BannerType
- type BonusType
- type CityEnchantment
- func (enchantment CityEnchantment) IconOffset() int
- func (enchantment CityEnchantment) LbxIndex() int
- func (enchantment CityEnchantment) Name() string
- func (enchantment CityEnchantment) SoundIndex() int
- func (enchantment CityEnchantment) SpellName() string
- func (enchantment CityEnchantment) UpkeepMana() int
- type CombatEnchantment
- type DifficultySetting
- type Enchantment
- type FogMap
- type FogType
- type HouseType
- type ItemAbility
- type MagicSetting
- type MagicType
- type Plane
- type PlanePoint
- type Race
- type Retort
- type ScaleAlgorithm
- type TreatyType
- type UnitEnchantment
- func (enchantment UnitEnchantment) Abilities() []Ability
- func (enchantment UnitEnchantment) CastAnimationIndex() int
- func (enchantment UnitEnchantment) Color() color.Color
- func (enchantment UnitEnchantment) LbxFile() string
- func (enchantment UnitEnchantment) LbxIndex() int
- func (enchantment UnitEnchantment) Magic() MagicType
- func (enchantment UnitEnchantment) Name() string
- func (enchantment UnitEnchantment) SpellName() string
- func (enchantment UnitEnchantment) UpkeepMana() int
- type WeaponBonus
- type WizardBase
- type WizardBook
Constants ¶
const ScreenHeightOriginal = 200
const ScreenWidthOriginal = 320
Variables ¶
var ScreenHeight = ScreenHeightOriginal * ScreenScale
var ScreenScale = 3
var ScreenScaleAlgorithm = ScaleAlgorithmNormal
var ScreenWidth = ScreenWidthOriginal * ScreenScale
Functions ¶
func GetMagicColor ¶
Types ¶
type Ability ¶
type Ability struct { Ability AbilityType Value float32 // contains filtered or unexported fields }
func MakeAbility ¶
func MakeAbility(ability AbilityType) Ability
func MakeAbilityValue ¶
func MakeAbilityValue(ability AbilityType, value float32) Ability
type AbilityType ¶
type AbilityType int
const ( AbilityNone AbilityType = iota // unit abilities AbilityArmorPiercing AbilityCauseFear AbilityColdImmunity AbilityConstruction AbilityCreateOutpost AbilityCreateUndead AbilityDeathGaze AbilityDeathImmunity AbilityDispelEvil AbilityDoomBoltSpell AbilityDoomGaze AbilityDeathTouch AbilityFireballSpell AbilityFireBreath AbilityFireImmunity AbilityFirstStrike AbilityForester AbilityHealer AbilityHealingSpell AbilityHolyBonus AbilityIllusion AbilityIllusionsImmunity AbilityImmolation AbilityInvisibility AbilityLargeShield AbilityLifeSteal AbilityLightningBreath AbilityLongRange AbilityMagicImmunity AbilityMeld AbilityMerging AbilityMissileImmunity AbilityMountaineer AbilityNegateFirstStrike AbilityNonCorporeal AbilityPathfinding AbilityPlaneShift AbilityPoisonImmunity AbilityPoisonTouch AbilityPurify AbilityRegeneration AbilityResistanceToAll AbilityScouting AbilityStoningGaze AbilityStoningImmunity AbilityStoningTouch AbilitySummonDemons AbilityToHit AbilityTransport AbilityTeleporting AbilityThrown AbilityWallCrusher AbilityWeaponImmunity AbilityWebSpell AbilityWindWalking // hero abilities AbilityAgility AbilitySuperAgility AbilityArcanePower AbilitySuperArcanePower AbilityArmsmaster AbilitySuperArmsmaster AbilityBlademaster AbilitySuperBlademaster AbilityCaster AbilityCharmed AbilityConstitution AbilitySuperConstitution AbilityLeadership AbilitySuperLeadership AbilityLegendary AbilitySuperLegendary AbilityLucky AbilityMight AbilitySuperMight AbilityNoble AbilityPrayermaster AbilitySuperPrayermaster AbilitySage AbilitySuperSage )
type BannerType ¶
type BannerType int
const ( BannerGreen BannerType = iota BannerBlue BannerRed BannerPurple BannerYellow BannerBrown )
func (BannerType) String ¶
func (banner BannerType) String() string
type BonusType ¶
type BonusType int
func (BonusType) PowerBonus ¶
func (BonusType) UnitReductionBonus ¶
returns a percent that unit costs are reduced by, 10 -> -10%
type CityEnchantment ¶
type CityEnchantment int
city enchantments (also called Town Enchantments)
const ( CityEnchantmentNone CityEnchantment = iota CityEnchantmentAltarOfBattle CityEnchantmentAstralGate CityEnchantmentChaosRift CityEnchantmentCloudOfShadow CityEnchantmentConsecration CityEnchantmentCursedLands CityEnchantmentDarkRituals CityEnchantmentEarthGate CityEnchantmentEvilPresence CityEnchantmentFamine CityEnchantmentFlyingFortress CityEnchantmentGaiasBlessing CityEnchantmentHeavenlyLight CityEnchantmentInspirations CityEnchantmentNaturesEye CityEnchantmentPestilence CityEnchantmentProsperity CityEnchantmentLifeWard CityEnchantmentSorceryWard CityEnchantmentNatureWard CityEnchantmentDeathWard CityEnchantmentChaosWard CityEnchantmentStreamOfLife CityEnchantmentWallOfDarkness CityEnchantmentWallOfFire CityEnchantmentWallOfStone )
func (CityEnchantment) IconOffset ¶
func (enchantment CityEnchantment) IconOffset() int
this is the offset in the city view of where to draw the enchantment sprite for enchantments that have 'normal' buildings associated with them (such as altar of battle), this is not needed
func (CityEnchantment) LbxIndex ¶
func (enchantment CityEnchantment) LbxIndex() int
func (CityEnchantment) Name ¶
func (enchantment CityEnchantment) Name() string
func (CityEnchantment) SoundIndex ¶
func (enchantment CityEnchantment) SoundIndex() int
func (CityEnchantment) SpellName ¶
func (enchantment CityEnchantment) SpellName() string
func (CityEnchantment) UpkeepMana ¶
func (enchantment CityEnchantment) UpkeepMana() int
type CombatEnchantment ¶
type CombatEnchantment int
const ( CombatEnchantmentNone CombatEnchantment = iota CombatEnchantmentHighPrayer CombatEnchantmentPrayer CombatEnchantmentTrueLight CombatEnchantmentCallLightning CombatEnchantmentEntangle CombatEnchantmentBlur CombatEnchantmentCounterMagic CombatEnchantmentMassInvisibility CombatEnchantmentMetalFires CombatEnchantmentWarpReality CombatEnchantmentBlackPrayer CombatEnchantmentDarkness CombatEnchantmentManaLeak CombatEnchantmentTerror CombatEnchantmentWrack )
func (CombatEnchantment) LbxIndex ¶
func (enchantment CombatEnchantment) LbxIndex() int
in compix.lbx
func (CombatEnchantment) Magic ¶
func (enchantment CombatEnchantment) Magic() MagicType
func (CombatEnchantment) Name ¶
func (enchantment CombatEnchantment) Name() string
type DifficultySetting ¶
type DifficultySetting int
const ( DifficultyIntro DifficultySetting = iota DifficultyEasy DifficultyAverage DifficultyHard DifficultyExtreme DifficultyImpossible )
type Enchantment ¶
type Enchantment int
global overland enchantments
const ( EnchantmentNone Enchantment = iota EnchantmentAwareness EnchantmentDetectMagic EnchantmentCharmOfLife EnchantmentCrusade EnchantmentHolyArms EnchantmentJustCause EnchantmentLifeForce EnchantmentPlanarSeal EnchantmentTranquility EnchantmentHerbMastery EnchantmentNatureAwareness EnchantmentNaturesWrath EnchantmentAuraOfMajesty EnchantmentSuppressMagic EnchantmentTimeStop EnchantmentWindMastery EnchantmentArmageddon EnchantmentChaosSurge EnchantmentDoomMastery EnchantmentGreatWasting EnchantmentMeteorStorm EnchantmentEternalNight EnchantmentEvilOmens EnchantmentZombieMastery )
func (Enchantment) LbxIndex ¶
func (enchantment Enchantment) LbxIndex() int
the index in specfx.lbx for when this enchantment is casted
func (Enchantment) String ¶
func (enchantment Enchantment) String() string
func (Enchantment) UpkeepMana ¶
func (enchantment Enchantment) UpkeepMana() int
how much mana per turn this enchantment costs
type ItemAbility ¶
type ItemAbility int
const ( ItemAbilityNone ItemAbility = iota ItemAbilityVampiric ItemAbilityGuardianWind ItemAbilityLightning ItemAbilityCloakOfFear ItemAbilityDestruction ItemAbilityWraithform ItemAbilityRegeneration ItemAbilityPathfinding ItemAbilityWaterWalking ItemAbilityResistElements ItemAbilityElementalArmor ItemAbilityChaos ItemAbilityStoning ItemAbilityEndurance ItemAbilityHaste ItemAbilityInvisibility ItemAbilityDeath ItemAbilityFlight ItemAbilityResistMagic ItemAbilityMagicImmunity ItemAbilityFlaming ItemAbilityHolyAvenger ItemAbilityTrueSight ItemAbilityPhantasmal ItemAbilityPowerDrain ItemAbilityBless ItemAbilityLionHeart ItemAbilityGiantStrength ItemAbilityPlanarTravel ItemAbilityMerging ItemAbilityRighteousness ItemAbilityInvulnerability )
func (ItemAbility) AbilityType ¶
func (item ItemAbility) AbilityType() AbilityType
func (ItemAbility) Enchantment ¶
func (item ItemAbility) Enchantment() UnitEnchantment
func (ItemAbility) LbxFile ¶
func (item ItemAbility) LbxFile() string
func (ItemAbility) LbxIndex ¶
func (item ItemAbility) LbxIndex() int
func (ItemAbility) MagicType ¶
func (item ItemAbility) MagicType() MagicType
func (ItemAbility) Name ¶
func (item ItemAbility) Name() string
type MagicSetting ¶
type MagicSetting int
const ( MagicSettingWeak MagicSetting = iota MagicSettingNormal MagicSettingPowerful )
type PlanePoint ¶
type Race ¶
type Race int
func ArcanianRaces ¶
func ArcanianRaces() []Race
func MyrranRaces ¶
func MyrranRaces() []Race
type Retort ¶
type Retort int
const ( RetortAlchemy Retort = iota RetortWarlord RetortChanneler RetortArchmage RetortArtificer RetortConjurer RetortSageMaster RetortMyrran RetortDivinePower RetortFamous RetortRunemaster RetortCharismatic RetortChaosMastery RetortNatureMastery RetortSorceryMastery RetortInfernalPower RetortManaFocusing RetortNodeMastery RetortNone )
func (Retort) DependencyExplanation ¶
type ScaleAlgorithm ¶
type ScaleAlgorithm int
const ( // the scale2x // https://www.scale2x.it/ ScaleAlgorithmScale ScaleAlgorithm = iota ScaleAlgorithmXbr ScaleAlgorithmNormal )
func (ScaleAlgorithm) String ¶
func (algorithm ScaleAlgorithm) String() string
type TreatyType ¶
type TreatyType int
const ( TreatyNone TreatyType = iota TreatyPact TreatyAlliance TreatyWar )
func (TreatyType) String ¶
func (treaty TreatyType) String() string
type UnitEnchantment ¶
type UnitEnchantment int
unit enchantments
const ( UnitEnchantmentNone UnitEnchantment = iota UnitEnchantmentGiantStrength UnitEnchantmentLionHeart UnitEnchantmentHaste UnitEnchantmentImmolation UnitEnchantmentResistElements UnitEnchantmentResistMagic UnitEnchantmentElementalArmor UnitEnchantmentBless UnitEnchantmentRighteousness UnitEnchantmentCloakOfFear UnitEnchantmentTrueSight UnitEnchantmentPathFinding UnitEnchantmentFlight UnitEnchantmentChaosChannelsDemonWings UnitEnchantmentChaosChannelsDemonSkin UnitEnchantmentChaosChannelsFireBreath UnitEnchantmentEndurance UnitEnchantmentHeroism UnitEnchantmentHolyArmor UnitEnchantmentHolyWeapon UnitEnchantmentInvulnerability UnitEnchantmentPlanarTravel UnitEnchantmentIronSkin UnitEnchantmentRegeneration UnitEnchantmentStoneSkin UnitEnchantmentWaterWalking UnitEnchantmentGuardianWind UnitEnchantmentInvisibility UnitEnchantmentMagicImmunity UnitEnchantmentSpellLock UnitEnchantmentWindWalking UnitEnchantmentEldritchWeapon UnitEnchantmentFlameBlade UnitEnchantmentBerserk UnitEnchantmentBlackChannels UnitEnchantmentWraithForm )
func (UnitEnchantment) Abilities ¶
func (enchantment UnitEnchantment) Abilities() []Ability
granted abilities, if any
func (UnitEnchantment) CastAnimationIndex ¶
func (enchantment UnitEnchantment) CastAnimationIndex() int
the index in specfx.lbx for when this enchantment is casted
func (UnitEnchantment) Color ¶
func (enchantment UnitEnchantment) Color() color.Color
func (UnitEnchantment) LbxFile ¶
func (enchantment UnitEnchantment) LbxFile() string
func (UnitEnchantment) LbxIndex ¶
func (enchantment UnitEnchantment) LbxIndex() int
func (UnitEnchantment) Magic ¶
func (enchantment UnitEnchantment) Magic() MagicType
the magic realm this enchantment belongs to
func (UnitEnchantment) Name ¶
func (enchantment UnitEnchantment) Name() string
func (UnitEnchantment) SpellName ¶
func (enchantment UnitEnchantment) SpellName() string
the equivalent spell that would have cast this spell
func (UnitEnchantment) UpkeepMana ¶
func (enchantment UnitEnchantment) UpkeepMana() int
type WeaponBonus ¶
type WeaponBonus int
const ( WeaponNone WeaponBonus = iota WeaponMagic WeaponMythril WeaponAdamantium )
type WizardBase ¶
type WizardBase int
const ( WizardMerlin WizardBase = iota WizardRaven WizardLoPan WizardJafar WizardOberic WizardRjak WizardSssra WizardTauron WizardFreya WizardHorus WizardAriel WizardTlaloc WizardKali )
type WizardBook ¶
the number of books a wizard has of a specific magic type