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 }

#energyAvailable Source

#energyCapacityAvailable Source

#memory Source

memory :: forall props. Room -> Record props

#mode Source

mode :: Room -> Mode

#roomGlobal Source

#serializePath Source

#deserializePath Source

#createConstructionSite Source

#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

#find Source

find :: forall a. Room -> FindType a -> Array a

#find' Source

find' :: forall a. Room -> FindType a -> FilterFn a -> Array a

#findPath' Source

#getPositionAt Source

#LookResult Source

data LookResult a

Constructors

#decodeLookResults Source

#decodeIt Source

decodeIt :: forall a. Json -> LookResult a

#lookForAt Source

lookForAt :: forall a. Room -> LookType a -> TargetPosition a -> (Array a)

#lookForAtArea Source

lookForAtArea :: forall a. Room -> LookType a -> Int -> Int -> Int -> Int -> Either String (Array (LookResult a))

#lookForInRange Source

#geoCentre Source

geoCentre :: RoomName -> RoomPosition

Geographic centre of a room with a given name.