Eamon CS
3.1.0
|
Public Member Functions | |
long | GetDir (long index) |
long | GetDir (Direction dir) |
void | SetDir (long index, long value) |
void | SetDir (Direction dir, long value) |
bool | IsLit () |
Indicates whether this Room is lit. More... | |
bool | IsViewable () |
bool | IsDirectionInvalid (long index) |
bool | IsDirectionInvalid (Direction dir) |
bool | IsDirectionRoom (long index) |
bool | IsDirectionRoom (Direction dir) |
bool | IsDirectionRoom01 (long index) |
bool | IsDirectionRoom01 (Direction dir) |
bool | IsDirectionExit (long index) |
bool | IsDirectionExit (Direction dir) |
bool | IsDirectionDoor (long index) |
bool | IsDirectionDoor (Direction dir) |
bool | IsDirectionSpecial (long index, bool includeExit=true) |
bool | IsDirectionSpecial (Direction dir, bool includeExit=true) |
bool | IsDirectionInObviousExitsList (long index) |
bool | IsDirectionInObviousExitsList (Direction dir) |
long | GetDirectionDoorUid (long index) |
long | GetDirectionDoorUid (Direction dir) |
IArtifact | GetDirectionDoor (long index) |
IArtifact | GetDirectionDoor (Direction dir) |
void | SetDirectionExit (long index) |
void | SetDirectionExit (Direction dir) |
void | SetDirectionDoorUid (long index, long artifactUid) |
void | SetDirectionDoorUid (Direction dir, long artifactUid) |
void | SetDirectionDoor (long index, IArtifact artifact) |
void | SetDirectionDoor (Direction dir, IArtifact artifact) |
string | GetYouAlsoSee (bool showDesc, IList< IMonster > monsterList, IList< IArtifact > artifactList, IList< IGameBase > recordList) |
string | GetObviousExits () |
Gets this Room's obvious exits prefix string, based on its Type. More... | |
bool | IsMonsterListedInRoom (IMonster monster) |
bool | IsArtifactListedInRoom (IArtifact artifact) |
T | EvalLightLevel< T > (T darkValue, T lightValue) |
Evaluates this Room's LightLvl, returning a value of type T. More... | |
T | EvalViewability< T > (T nonviewableValue, T viewableValue) |
T | EvalRoomType< T > (T indoorsValue, T outdoorsValue) |
Evaluates this Room's Type, returning a value of type T. More... | |
IList< IArtifact > | GetTakeableList (Func< IArtifact, bool > roomFindFunc=null, Func< IArtifact, bool > artifactFindFunc=null, bool recurse=false) |
IList< IArtifact > | GetEmbeddedList (Func< IArtifact, bool > roomFindFunc=null, Func< IArtifact, bool > artifactFindFunc=null, bool recurse=false) |
IList< IGameBase > | GetContainedList (Func< IGameBase, bool > roomFindFunc=null, Func< IArtifact, bool > monsterFindFunc=null, Func< IArtifact, bool > artifactFindFunc=null, bool recurse=false) |
RetCode | GetExitList (StringBuilder buf, Func< string, string > modFunc=null, bool useNames=true) |
RetCode | BuildPrintedFullDesc (StringBuilder buf, Func< IMonster, bool > monsterFindFunc=null, Func< IArtifact, bool > artifactFindFunc=null, bool verboseRoomDesc=false, bool verboseMonsterDesc=false, bool verboseArtifactDesc=false, bool verboseNames=false, IRecordNameListArgs recordNameListArgs=null) |
RetCode | BuildPrintedTooDarkToSeeDesc (StringBuilder buf) |
![]() | |
void | SetParentReferences () |
string | GetPluralName (string fieldName) |
string | GetPluralName01 () |
string | GetDecoratedName (string fieldName, ArticleType articleType, bool upshift=false, bool showCharOwned=true, bool showStateDesc=false, bool showContents=false, bool groupCountOne=false) |
string | GetNoneName (bool upshift=false, bool showCharOwned=true, bool showStateDesc=false, bool showContents=false, bool groupCountOne=false) |
string | GetArticleName (bool upshift=false, bool showCharOwned=true, bool showStateDesc=false, bool showContents=false, bool groupCountOne=false) |
string | GetTheName (bool upshift=false, bool showCharOwned=true, bool showStateDesc=false, bool showContents=false, bool groupCountOne=false) |
RetCode | BuildPrintedFullDesc (StringBuilder buf, bool showName, bool showVerboseName) |
Properties | |
LightLevel | LightLvl [get, set] |
Gets or sets a value indicating the amount of light in this Room. More... | |
RoomType | Type [get, set] |
Gets or sets a value indicating this Room's general type. More... | |
long | Zone [get, set] |
Gets or sets a value that is unused by Eamon CS, but indicates the zone of this Room. More... | |
long[] | Dirs [get, set] |
Gets or sets an array of Room exit links, each element corresponding to one Direction. More... | |
![]() | |
long | Uid [get, set] |
Gets or sets a unique Id that distinguishes this Record from others of its type. More... | |
string | Name [get, set] |
Gets or sets the name of this Record as shown in various lists or the Record's full description. More... | |
string | Desc [get, set] |
Gets or sets the detailed description of this Record shown when the Record is first Seen or later examined. More... | |
string[] | Synonyms [get, set] |
Gets or sets a string array containing Name synonyms for this Record (may be null ). More... | |
bool | Seen [get, set] |
Gets or sets a value indicating whether this Record has been seen by the player character. More... | |
bool | Moved [get, set] |
Gets or sets a value indicating whether this Record has been moved from its original Location. More... | |
ArticleType | ArticleType [get, set] |
Gets or sets a value indicating how this Record's Name is prefixed to produce its listed Name. More... | |
string | ParserMatchName [get, set] |
Gets or sets the name or synonym of this Record matched in the FilterRecordList method. More... | |
RetCode Eamon.Framework.IRoom.BuildPrintedFullDesc | ( | StringBuilder | buf, |
Func< IMonster, bool > | monsterFindFunc = null , |
||
Func< IArtifact, bool > | artifactFindFunc = null , |
||
bool | verboseRoomDesc = false , |
||
bool | verboseMonsterDesc = false , |
||
bool | verboseArtifactDesc = false , |
||
bool | verboseNames = false , |
||
IRecordNameListArgs | recordNameListArgs = null |
||
) |
buf | |
monsterFindFunc | |
artifactFindFunc | |
verboseRoomDesc | |
verboseMonsterDesc | |
verboseArtifactDesc | |
verboseNames | |
recordNameListArgs |
Implemented in Eamon.Game.Room, and OrbOfMyLife.Game.Room.
RetCode Eamon.Framework.IRoom.BuildPrintedTooDarkToSeeDesc | ( | StringBuilder | buf | ) |
buf |
Implemented in Eamon.Game.Room, ThePyramidOfAnharos.Game.Room, and TheDeepCanyon.Game.Room.
T Eamon.Framework.IRoom.EvalLightLevel< T > | ( | T | darkValue, |
T | lightValue | ||
) |
Evaluates this Room's LightLvl, returning a value of type T.
darkValue | |
lightValue |
Implemented in Eamon.Game.Room.
T Eamon.Framework.IRoom.EvalRoomType< T > | ( | T | indoorsValue, |
T | outdoorsValue | ||
) |
Evaluates this Room's Type, returning a value of type T.
indoorsValue | |
outdoorsValue |
Implemented in Eamon.Game.Room.
T Eamon.Framework.IRoom.EvalViewability< T > | ( | T | nonviewableValue, |
T | viewableValue | ||
) |
IList<IGameBase> Eamon.Framework.IRoom.GetContainedList | ( | Func< IGameBase, bool > | roomFindFunc = null , |
Func< IArtifact, bool > | monsterFindFunc = null , |
||
Func< IArtifact, bool > | artifactFindFunc = null , |
||
bool | recurse = false |
||
) |
roomFindFunc | |
monsterFindFunc | |
artifactFindFunc | |
recurse |
Implemented in Eamon.Game.Room.
long Eamon.Framework.IRoom.GetDir | ( | Direction | dir | ) |
long Eamon.Framework.IRoom.GetDir | ( | long | index | ) |
index |
Implemented in TheVileGrimoireOfJaldial.Game.Room, Eamon.Game.Room, ThePyramidOfAnharos.Game.Room, TheWayfarersInn.Game.Room, TheDeepCanyon.Game.Room, TheSubAquanLaboratory.Game.Room, and TheTempleOfNgurct.Game.Room.
IArtifact Eamon.Framework.IRoom.GetDirectionDoor | ( | long | index | ) |
long Eamon.Framework.IRoom.GetDirectionDoorUid | ( | Direction | dir | ) |
long Eamon.Framework.IRoom.GetDirectionDoorUid | ( | long | index | ) |
RetCode Eamon.Framework.IRoom.GetExitList | ( | StringBuilder | buf, |
Func< string, string > | modFunc = null , |
||
bool | useNames = true |
||
) |
buf | |
modFunc | |
useNames |
Implemented in Eamon.Game.Room, TheVileGrimoireOfJaldial.Game.Room, ThePyramidOfAnharos.Game.Room, and OrbOfMyLife.Game.Room.
string Eamon.Framework.IRoom.GetObviousExits | ( | ) |
Gets this Room's obvious exits prefix string, based on its Type.
Implemented in Eamon.Game.Room, ThePyramidOfAnharos.Game.Room, OrbOfMyLife.Game.Room, and ARuncibleCargo.Game.Room.
string Eamon.Framework.IRoom.GetYouAlsoSee | ( | bool | showDesc, |
IList< IMonster > | monsterList, | ||
IList< IArtifact > | artifactList, | ||
IList< IGameBase > | recordList | ||
) |
showDesc | |
monsterList | |
artifactList | |
recordList |
Implemented in Eamon.Game.Room, and TheVileGrimoireOfJaldial.Game.Room.
bool Eamon.Framework.IRoom.IsArtifactListedInRoom | ( | IArtifact | artifact | ) |
bool Eamon.Framework.IRoom.IsDirectionDoor | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionDoor | ( | long | index | ) |
bool Eamon.Framework.IRoom.IsDirectionExit | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionExit | ( | long | index | ) |
bool Eamon.Framework.IRoom.IsDirectionInObviousExitsList | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionInObviousExitsList | ( | long | index | ) |
index |
Implemented in Eamon.Game.Room, TheVileGrimoireOfJaldial.Game.Room, ThePyramidOfAnharos.Game.Room, TheDeepCanyon.Game.Room, TheWayfarersInn.Game.Room, OrbOfMyLife.Game.Room, WrenholdsSecretVigil.Game.Room, and Dharmaquest.Game.Room.
bool Eamon.Framework.IRoom.IsDirectionInvalid | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionInvalid | ( | long | index | ) |
bool Eamon.Framework.IRoom.IsDirectionRoom | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionRoom | ( | long | index | ) |
bool Eamon.Framework.IRoom.IsDirectionRoom01 | ( | Direction | dir | ) |
bool Eamon.Framework.IRoom.IsDirectionRoom01 | ( | long | index | ) |
bool Eamon.Framework.IRoom.IsDirectionSpecial | ( | Direction | dir, |
bool | includeExit = true |
||
) |
bool Eamon.Framework.IRoom.IsDirectionSpecial | ( | long | index, |
bool | includeExit = true |
||
) |
bool Eamon.Framework.IRoom.IsLit | ( | ) |
Indicates whether this Room is lit.
true
, otherwise false
.Implemented in Eamon.Game.Room.
bool Eamon.Framework.IRoom.IsMonsterListedInRoom | ( | IMonster | monster | ) |
bool Eamon.Framework.IRoom.IsViewable | ( | ) |
Implemented in Eamon.Game.Room, and OrbOfMyLife.Game.Room.
void Eamon.Framework.IRoom.SetDir | ( | Direction | dir, |
long | value | ||
) |
dir | |
value |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDir | ( | long | index, |
long | value | ||
) |
index | |
value |
Implemented in Eamon.Game.Room.
dir | |
artifact |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDirectionDoor | ( | long | index, |
IArtifact | artifact | ||
) |
index | |
artifact |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDirectionDoorUid | ( | Direction | dir, |
long | artifactUid | ||
) |
dir | |
artifactUid |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDirectionDoorUid | ( | long | index, |
long | artifactUid | ||
) |
index | |
artifactUid |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDirectionExit | ( | Direction | dir | ) |
dir |
Implemented in Eamon.Game.Room.
void Eamon.Framework.IRoom.SetDirectionExit | ( | long | index | ) |
index |
Implemented in Eamon.Game.Room.
|
getset |
Gets or sets an array of Room exit links, each element corresponding to one Direction.
The array always contains the same number of elements, and the 0'th element is unused. Exit links can be Room Uids or special codes representing things like game exits, doors, blocked pathways or other more exotic game-specific portals. Avoid accessing array elements directly in favor of using Getter/Setter methods to ensure games can override when necessary.
|
getset |
Gets or sets a value indicating the amount of light in this Room.
|
getset |
Gets or sets a value indicating this Room's general type.
|
getset |