Module
Screeps.RoomPosition 
- Package
- purescript-screeps-classy
- Repository
- purescript/purescript-screeps
Corresponds to the Screeps API RoomPosition
#ClosestPathOptions Source
type ClosestPathOptions = PathOptions (algorithm :: Maybe FindAlgorithm, filter :: Maybe (forall a. a -> Boolean))#unwrapContext Source
unwrapContext :: forall b a. FindContext a -> b#createConstructionSite Source
createConstructionSite :: forall e. RoomPosition -> StructureType -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode#createFlag Source
createFlag :: forall e. RoomPosition -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode#createFlagWithName Source
createFlagWithName :: forall e. RoomPosition -> String -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode#createFlagWithColor Source
createFlagWithColor :: forall e. RoomPosition -> String -> Color -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode#createFlagWithColors Source
createFlagWithColors :: forall e. RoomPosition -> String -> Color -> Color -> Eff (cmd :: CMD, err :: EXCEPTION | e) ReturnCode#findClosestByPath Source
findClosestByPath :: forall a. RoomPosition -> FindContext a -> Either Error (Maybe a)#findClosestByPath' Source
findClosestByPath' :: forall a. RoomPosition -> FindContext a -> ClosestPathOptions -> Either Error (Maybe a)#findClosestByRange Source
findClosestByRange :: forall a. RoomPosition -> FindContext a -> Either Error (Maybe a)#findClosestByRange' Source
findClosestByRange' :: forall a. RoomPosition -> FindContext a -> FilterFn a -> Either Error (Maybe a)#findInRange Source
findInRange :: forall a. RoomPosition -> FindContext a -> Int -> Either Error (Array a)#findInRange' Source
findInRange' :: forall a. RoomPosition -> FindContext a -> Int -> FilterFn a -> Either Error (Array a)#findPathTo Source
findPathTo :: forall a. RoomPosition -> TargetPosition a -> Either Error Path#findPathTo' Source
findPathTo' :: forall a. RoomPosition -> TargetPosition a -> PathOptions () -> Either Error Path#getDirectionTo Source
getDirectionTo :: forall a. RoomPosition -> TargetPosition a -> Direction#getRangeTo Source
getRangeTo :: forall a. RoomPosition -> TargetPosition a -> IntMay return Infinity
#inRangeTo Source
inRangeTo :: forall a. RoomPosition -> TargetPosition a -> Int -> Boolean#isEqualTo Source
isEqualTo :: forall a. RoomPosition -> TargetPosition a -> Boolean#isNearTo Source
isNearTo :: forall a. RoomPosition -> TargetPosition a -> Boolean- 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