Module
Screeps.Creep
- Package
- purescript-screeps-classy
- Repository
- purescript/purescript-screeps
Corresponds to the Screeps API Creep
#CreepCargo Source
type CreepCargo = StrMap Int
#MoveOptions Source
type MoveOptions = PathOptions (noPathFinding :: Maybe Boolean, reusePath :: Maybe Int, serializeMemory :: Maybe Boolean)
#amtCarrying Source
amtCarrying :: Creep -> ResourceType -> Int
#totalAmtCarrying Source
totalAmtCarrying :: Creep -> Int
#carryCapacity Source
carryCapacity :: Creep -> Int
#ticksToLive Source
ticksToLive :: Creep -> Int
#attackCreep Source
attackCreep :: forall e. Creep -> Creep -> Eff (cmd :: CMD | e) ReturnCode
#attackStructure Source
attackStructure :: forall e a. Structure a => Creep -> a -> Eff (cmd :: CMD | e) ReturnCode
#attackController Source
attackController :: forall e a. Structure a => Creep -> a -> Eff (cmd :: CMD | e) ReturnCode
#build Source
build :: forall e. Creep -> ConstructionSite -> Eff (cmd :: CMD | e) ReturnCode
#cancelOrder Source
cancelOrder :: forall e. Creep -> String -> Eff (cmd :: CMD | e) ReturnCode
#claimController Source
claimController :: forall e. Creep -> Controller -> Eff (cmd :: CMD | e) ReturnCode
#drop Source
drop :: forall e. Creep -> ResourceType -> Eff (cmd :: CMD | e) ReturnCode
#dropAmt Source
dropAmt :: forall e. Creep -> ResourceType -> Int -> Eff (cmd :: CMD | e) ReturnCode
#getActiveBodyparts Source
getActiveBodyparts :: Creep -> BodyPartType -> Int
#harvestSource Source
harvestSource :: forall e. Creep -> Source -> Eff (cmd :: CMD | e) ReturnCode
#harvestMineral Source
harvestMineral :: forall e. Creep -> Mineral -> Eff (cmd :: CMD | e) ReturnCode
#moveByPath Source
moveByPath :: forall e. Creep -> Path -> Eff (cmd :: CMD | e) ReturnCode
#moveTo Source
moveTo :: forall e a. Creep -> TargetPosition a -> Eff (cmd :: CMD, memory :: MEMORY | e) ReturnCode
#moveTo' Source
moveTo' :: forall e a. Creep -> TargetPosition a -> MoveOptions -> Eff (cmd :: CMD, memory :: MEMORY | e) ReturnCode
#rangedAttackCreep Source
rangedAttackCreep :: forall e. Creep -> Creep -> Eff (cmd :: CMD | e) ReturnCode
#rangedAttackStructure Source
rangedAttackStructure :: forall e a. Structure a => Creep -> a -> Eff (cmd :: CMD | e) ReturnCode
#rangedHeal Source
rangedHeal :: forall e. Creep -> Creep -> Eff (cmd :: CMD | e) ReturnCode
#rangedMassAttack Source
rangedMassAttack :: forall e. Creep -> Eff (cmd :: CMD | e) ReturnCode
#reserveController Source
reserveController :: forall e. Creep -> Controller -> Eff (cmd :: CMD | e) ReturnCode
#transferToCreep Source
transferToCreep :: forall e. Creep -> Creep -> ResourceType -> Int -> Eff (cmd :: CMD | e) ReturnCode
#transferToStructure Source
transferToStructure :: forall e a. Structure a => Creep -> a -> ResourceType -> Eff (cmd :: CMD | e) ReturnCode
#transferAmtToStructure Source
transferAmtToStructure :: forall e a. Structure a => Creep -> a -> ResourceType -> Int -> Eff (cmd :: CMD | e) ReturnCode
#refill Source
refill :: forall a e. Refillable a => Structure a => Creep -> a -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode
Refill a structure that is refillable.
#upgradeController Source
upgradeController :: forall e. Creep -> Controller -> Eff (cmd :: CMD | e) ReturnCode
#withdraw Source
withdraw :: forall e a. Structure a => Creep -> a -> ResourceType -> Eff (cmd :: CMD | e) ReturnCode
#withdrawAmt Source
withdrawAmt :: forall e a. Structure a => Creep -> a -> ResourceType -> Int -> Eff (cmd :: CMD | e) ReturnCode
- Modules
- Screeps
- Screeps.
BodyPartType - Screeps.
Color - Screeps.
Constants - Screeps.
ConstructionSite - Screeps.
Container - Screeps.
Controller - Screeps.
Coolsdown - Screeps.
Coord - Screeps.
Creep - Screeps.
Decays - Screeps.
Deposit - Screeps.
Destructible - Screeps.
Direction - Screeps.
Effects - Screeps.
Extension - Screeps.
Extractor - Screeps.
FFI - Screeps.
FindType - Screeps.
Flag - Screeps.
Game - Screeps.
Id - Screeps.
IntMap - Screeps.
KeeperLair - Screeps.
Lab - Screeps.
Link - Screeps.
Map - Screeps.
Market - Screeps.
Memory - Screeps.
Mineral - Screeps.
Names - Screeps.
Nuke - Screeps.
Nuker - Screeps.
Observer - Screeps.
Owned - Screeps.
Path - Screeps.
Path. Cache - Screeps.
Portal - Screeps.
PowerBank - Screeps.
PowerSpawn - Screeps.
Progress - Screeps.
Rampart - Screeps.
Refillable - Screeps.
Regenerates - Screeps.
Resource - Screeps.
ReturnCode - Screeps.
Road - Screeps.
Room - Screeps.
RoomObject - Screeps.
RoomPosition - Screeps.
RoomPosition. Type - Screeps.
Source - Screeps.
Spawn - Screeps.
Storage - Screeps.
Stores - Screeps.
Structure - Screeps.
Terminal - Screeps.
Tower - Screeps.
Types - Screeps.
Wall