Module

Screeps

Package
purescript-screeps-classy
Repository
purescript/purescript-screeps

This helper module re-exports almost all of the types and constants used in the library. Functions for using particular types are defined in their own modules.

Re-exports from Screeps.Constants

#StructureInfo Source

type StructureInfo = IntMap Int

Number of structures available on each level

#wall_hits_max Source

#wall_hits Source

#upgrade_controller_power Source

#tower_power_repair Source

#tower_power_heal Source

#tower_power_attack Source

#tower_optimal_range Source

#tower_hits Source

#tower_falloff_range Source

#tower_falloff Source

#tower_energy_cost Source

#tower_capacity Source

#terminal_send_cost Source

#terminal_min_send Source

#terminal_hits Source

#terminal_capacity Source

#storage_hits Source

#storage_capacity Source

#spawn_hits Source

#spawn_energy_start Source

#spawn_energy_capacity Source

#source_energy_neutral_capacity Source

#source_energy_keeper_capacity Source

#source_energy_capacity Source

#road_wearout Source

#road_hits Source

#road_decay_time Source

#road_decay_amount Source

#repair_power Source

#repair_cost Source

#ranged_heal_power Source

#ranged_attack_power Source

#rampart_hits_max Source

rampart_hits_max :: IntMap Int

From 2 to 8

#rampart_hits Source

#rampart_decay_time Source

#rampart_decay_amount Source

#power_spawn_power_capacity Source

#power_spawn_hits Source

#power_spawn_energy_ratio Source

#power_spawn_energy_capacity Source

#power_bank_hits Source

#power_bank_hit_back Source

#power_bank_decay Source

#power_bank_capacity_min Source

#power_bank_capacity_max Source

#power_bank_capacity_crit Source

#obstacle_object_types Source

#observer_range Source

#observer_hits Source

#nuker_hits Source

#nuker_ghodium_capacity Source

#nuker_energy_capacity Source

#nuker_cooldown Source

#nuke_range Source

#nuke_land_time Source

#nuke_damage Source

nuke_damage :: { "0" :: Int, "1" :: Int, "4" :: Int }

#mode_world Source

#mode_survival Source

#mode_simulation Source

#mode_arena Source

#mineral_regen_time Source

#mineral_random_factor Source

#mineral_min_amount Source

mineral_min_amount :: { "H" :: Int, "K" :: Int, "L" :: Int, "O" :: Int, "U" :: Int, "X" :: Int, "Z" :: Int }

#max_creep_size Source

#max_construction_sites Source

#lab_mineral_capacity Source

#lab_hits Source

#lab_energy_capacity Source

#lab_cooldown Source

#lab_boost_mineral Source

#lab_boost_energy Source

#heal_power Source

#harvest_power Source

#harvest_mineral_power Source

#gcl_novice Source

#gcl_multiply Source

#extractor_hits Source

#extension_hits Source

#extension_energy_capacity Source

#energy_regen_time Source

#energy_decay Source

#dismantle_power Source

#dismantle_cost Source

#creep_spawn_time Source

#creep_life_time Source

#creep_corpse_rate Source

#creep_claim_life_time Source

#controller_structures Source

controller_structures :: { constructedWall :: StructureInfo, container :: StructureInfo, extension :: StructureInfo, extractor :: StructureInfo, lab :: StructureInfo, link :: StructureInfo, nuker :: StructureInfo, observer :: StructureInfo, powerSpawn :: StructureInfo, rampart :: StructureInfo, road :: StructureInfo, spawn :: StructureInfo, storage :: StructureInfo, terminal :: StructureInfo, tower :: StructureInfo }

NOTE: there is better interface Screeps.Structure.numStructures

#controller_reserve_max Source

#controller_reserve Source

#controller_max_upgrade_per_tick Source

#controller_levels Source

#controller_claim_downgrade Source

#controller_attack_blocked_upgrade Source

#container_hits Source

#container_decay_time_owned Source

#container_decay_time Source

#container_decay Source

#container_capacity Source

#construction_cost_road_swamp_ratio Source

#construction_cost Source

construction_cost :: { constructedWall :: Int, container :: Int, extension :: Int, extractor :: Int, lab :: Int, link :: Int, nuker :: Int, observer :: Int, powerSpawn :: Int, rampart :: Int, road :: Int, spawn :: Int, storage :: Int, terminal :: Int, tower :: Int }

#carry_capacity Source

#build_power Source

#attack_power Source

Re-exports from Screeps.Effects

#TIME Source

data TIME :: Effect

For time-dependent functions where the output changes depending on when it is called.

#TICK Source

data TICK :: Effect

Global scope is cleared periodically, so values depending on global variables like Game and Memory need to be fetched dynamically. This effect enforces this.

#MEMORY Source

data MEMORY :: Effect

Memory accesses are tagged with this effect.

#CMD Source

data CMD :: Effect

Tag for functions which execute a Screeps command as a side effect e.g. to move a creep.

Re-exports from Screeps.Types

#WorldMap Source

data WorldMap :: Type

#Terrain Source

#Mode Source

newtype Mode

Constructors

Instances

#FilterFn Source

type FilterFn a = a -> Boolean

#Owned Source

class Owned a 

Instances