Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Object = Object {
- objectIsPlayer :: Bool
- objectParent :: Maybe ObjId
- objectChildren :: IntSet
- objectName :: StrT
- objectOwner :: ObjId
- objectLocation :: Maybe ObjId
- objectContents :: IntSet
- objectProgrammer :: Bool
- objectWizard :: Bool
- objectPermR :: Bool
- objectPermW :: Bool
- objectPermF :: Bool
- objectProperties :: HashMap StrT (PVar Property)
- objectVerbs :: [VerbDef]
- data Property = Property {}
- initObject :: Object
- initProperty :: Property
- getParent :: Object -> ObjId
- getChildren :: Object -> [ObjId]
- addChild :: ObjId -> Object -> VTx Object
- deleteChild :: ObjId -> Object -> VTx Object
- getContents :: Object -> [ObjId]
- addContent :: ObjId -> Object -> VTx Object
- deleteContent :: ObjId -> Object -> VTx Object
- builtinProperties :: [Id]
- builtinProperty :: StrT -> Maybe (Object -> Value)
- isBuiltinProperty :: StrT -> Bool
- objectForMaybe :: Maybe ObjId -> ObjId
- setProperties :: VSpace -> [Property] -> Object -> IO Object
- setVerbs :: VSpace -> [Verb] -> Object -> IO Object
- lookupPropertyRef :: Object -> StrT -> Maybe (PVar Property)
- lookupProperty :: Object -> StrT -> VTx (Maybe Property)
- addProperty :: Property -> Object -> VTx Object
- addInheritedProperty :: Property -> Object -> VTx Object
- deleteProperty :: StrT -> Object -> VTx Object
- lookupVerbRef :: Bool -> Object -> Value -> Maybe (Int, PVar Verb)
- lookupVerb :: Bool -> Object -> Value -> VTx (Maybe Verb)
- replaceVerb :: Int -> Verb -> Object -> VTx Object
- addVerb :: Verb -> Object -> VTx Object
- deleteVerb :: Int -> Object -> VTx Object
- definedProperties :: Object -> VTx [StrT]
- definedVerbs :: Object -> VTx [StrT]
- renumberObject :: Object -> ObjId -> ObjId -> Database -> VTx ()
- renumberOwnership :: ObjId -> ObjId -> Object -> VTx (Maybe Object)
- systemObject :: ObjId
- nothing :: ObjId
- ambiguousMatch :: ObjId
- failedMatch :: ObjId
Documentation
Object | |
|
Property | |
|
getChildren :: Object -> [ObjId] Source
deleteChild :: ObjId -> Object -> VTx Object Source
getContents :: Object -> [ObjId] Source
addContent :: ObjId -> Object -> VTx Object Source
deleteContent :: ObjId -> Object -> VTx Object Source
builtinProperties :: [Id] Source
isBuiltinProperty :: StrT -> Bool Source
objectForMaybe :: Maybe ObjId -> ObjId Source
addProperty :: Property -> Object -> VTx Object Source
addInheritedProperty :: Property -> Object -> VTx Object Source
deleteProperty :: StrT -> Object -> VTx Object Source
deleteVerb :: Int -> Object -> VTx Object Source
definedProperties :: Object -> VTx [StrT] Source
definedVerbs :: Object -> VTx [StrT] Source
Special Object Numbers
The system object (#0
)
ambiguousMatch :: ObjId Source
$ambiguous_match
(#-2
)
$failed_match
(#-3
)