Module
Screeps.Room
- Package
- purescript-screeps-classy
- Repository
- purescript/purescript-screeps
Corresponds to the Screeps API Room
#fromAnyRoomObject Source
fromAnyRoomObject :: forall ro. HasId ro => AnyRoomObject -> Maybe ro
#PathOptions Source
type PathOptions o = { avoid :: Maybe (Array RoomPosition), heuristicWeight :: Maybe Number, ignore :: Maybe (Array RoomPosition), ignoreCreeps :: Maybe Boolean, ignoreDestructibleStructures :: Maybe Boolean, ignoreRoads :: Maybe Boolean, maxOps :: Maybe Int, maxRooms :: Maybe Int, serialize :: Maybe Boolean | o }
#pathOpts Source
pathOpts :: PathOptions ()
#controller Source
controller :: Room -> Maybe Controller
#energyAvailable Source
energyAvailable :: Room -> Int
#energyCapacityAvailable Source
energyCapacityAvailable :: Room -> Int
#roomGlobal Source
roomGlobal :: Record ()
#serializePath Source
serializePath :: Path -> String
#deserializePath Source
deserializePath :: String -> Path
#createConstructionSite Source
createConstructionSite :: forall e a. Room -> TargetPosition a -> StructureType -> Eff (cmd :: CMD | e) ReturnCode
#createFlag Source
createFlag :: forall e a. Room -> TargetPosition a -> Eff (cmd :: CMD | e) ReturnCode
#createFlagWithName Source
createFlagWithName :: forall e a. Room -> TargetPosition a -> String -> Eff (cmd :: CMD | e) ReturnCode
#createFlagWithColor Source
createFlagWithColor :: forall e a. Room -> TargetPosition a -> String -> Color -> Eff (cmd :: CMD | e) ReturnCode
#createFlagWithColors Source
createFlagWithColors :: forall e a. Room -> TargetPosition a -> String -> Color -> Color -> Eff (cmd :: CMD | e) ReturnCode
#findExitToImpl Source
findExitToImpl :: Room -> RoomName -> (ReturnCode -> Either ReturnCode (FindType RoomPosition)) -> (FindType RoomPosition -> Either ReturnCode (FindType RoomPosition)) -> Either ReturnCode (FindType RoomPosition)
#findExitTo Source
findExitTo :: Room -> RoomName -> Either ReturnCode (FindType RoomPosition)
#findPath Source
findPath :: Room -> RoomPosition -> RoomPosition -> Path
#findPath' Source
findPath' :: forall o. Room -> RoomPosition -> RoomPosition -> PathOptions o -> Path
#getPositionAt Source
getPositionAt :: Room -> Int -> Int -> RoomPosition
#LookResult Source
data LookResult a
Constructors
LookResult { resultType :: LookType a, structureType :: Maybe StructureType, terrain :: Maybe Terrain, x :: Int, y :: Int }
#decodeLookResults Source
decodeLookResults :: forall a. Json -> Either String (Array (LookResult a))
#decodeIt Source
decodeIt :: forall a. Json -> LookResult a
#lookForInRange Source
lookForInRange :: forall a. Room -> LookType a -> RoomPosition -> Int -> Either String (Array (LookResult a))
#geoCentre Source
geoCentre :: RoomName -> RoomPosition
Geographic centre of a room with a given name.
- 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