C# 클래스 Aura.Channel.World.Dungeons.Puzzles.PuzzlePlace

Place on a tile in a dungeon that contains a part of a puzzle.
파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
AddProp ( Aura.Channel.World.Dungeons.Props.DungeonProp prop, Placement positionType ) : void

Adds prop to place.

CloseAllDoors ( ) : void

Closes all doors at this place.

DeclareLock ( bool lockSelf = false ) : void

Makes it a locked place with a locked door.

DeclareLockSelf ( ) : void

Makes it a locked place with a locked door that doesn't need an unlock place.

DeclareUnlock ( PuzzlePlace lockPlace ) : void

This place will precede locked place and contain some means to unlock it.

GetLockDoor ( ) : Door

Returns locked door of this place.

GetPosition ( Placement placement, int border = -1 ) : int[]

Returns position and direction for placement.

GetRoomPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position

Returns the room's position.

GetWorldPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position

Returns the position of the place in world coordinates.

LockPlace ( ) : void

Locks this place.

LockPlace ( Item key ) : void

Locks this place with the given key.

Open ( ) : void

Opens locked place.

OpenAllDoors ( ) : void

Opens all doors at this place.

PuzzlePlace ( Aura.Channel.World.Dungeons.Generation.DungeonFloorSection section, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, string name ) : System.Collections.Generic

Creates new puzzle place.

ReserveDoors ( ) : void

Declares this place to be a room. Doors of this place won't be locked with a key.

ReservePlace ( ) : void

Declares that this place is not to be used by any other puzzles. If we didn't declare this place to be something, reserve random place.

SpawnSingleMob ( string mobGroupName, int raceId, int amount, Placement placement = Placement.Random ) : void

Creates mob in puzzle, in place.

SpawnSingleMob ( string mobGroupName, string mobToSpawn = null, Placement placement = Placement.Random ) : void

Creates mob in puzzle, in this place.

비공개 메소드들

메소드 설명
AddDoor ( int direction, DungeonBlockType doorType ) : void

Adds door to place.

UpdatePosition ( ) : void

Updates world position of place.

메소드 상세

AddProp() 공개 메소드

Adds prop to place.
public AddProp ( Aura.Channel.World.Dungeons.Props.DungeonProp prop, Placement positionType ) : void
prop Aura.Channel.World.Dungeons.Props.DungeonProp
positionType Placement
리턴 void

CloseAllDoors() 공개 메소드

Closes all doors at this place.
public CloseAllDoors ( ) : void
리턴 void

DeclareLock() 공개 메소드

Makes it a locked place with a locked door.
public DeclareLock ( bool lockSelf = false ) : void
lockSelf bool
리턴 void

DeclareLockSelf() 공개 메소드

Makes it a locked place with a locked door that doesn't need an unlock place.
public DeclareLockSelf ( ) : void
리턴 void

DeclareUnlock() 공개 메소드

This place will precede locked place and contain some means to unlock it.
public DeclareUnlock ( PuzzlePlace lockPlace ) : void
lockPlace PuzzlePlace
리턴 void

GetLockDoor() 공개 메소드

Returns locked door of this place.
Thrown if there is no lock or no door.
public GetLockDoor ( ) : Door
리턴 Aura.Channel.World.Dungeons.Props.Door

GetPosition() 공개 메소드

Returns position and direction for placement.
public GetPosition ( Placement placement, int border = -1 ) : int[]
placement Placement
border int
리턴 int[]

GetRoomPosition() 공개 메소드

Returns the room's position.
public GetRoomPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position
리턴 Aura.Channel.World.Dungeons.Generation.Position

GetWorldPosition() 공개 메소드

Returns the position of the place in world coordinates.
public GetWorldPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position
리턴 Aura.Channel.World.Dungeons.Generation.Position

LockPlace() 공개 메소드

Locks this place.
public LockPlace ( ) : void
리턴 void

LockPlace() 공개 메소드

Locks this place with the given key.
public LockPlace ( Item key ) : void
key Item
리턴 void

Open() 공개 메소드

Opens locked place.
public Open ( ) : void
리턴 void

OpenAllDoors() 공개 메소드

Opens all doors at this place.
public OpenAllDoors ( ) : void
리턴 void

PuzzlePlace() 공개 메소드

Creates new puzzle place.
public PuzzlePlace ( Aura.Channel.World.Dungeons.Generation.DungeonFloorSection section, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, string name ) : System.Collections.Generic
section Aura.Channel.World.Dungeons.Generation.DungeonFloorSection
puzzle Aura.Channel.World.Dungeons.Puzzles.Puzzle
name string
리턴 System.Collections.Generic

ReserveDoors() 공개 메소드

Declares this place to be a room. Doors of this place won't be locked with a key.
public ReserveDoors ( ) : void
리턴 void

ReservePlace() 공개 메소드

Declares that this place is not to be used by any other puzzles. If we didn't declare this place to be something, reserve random place.
public ReservePlace ( ) : void
리턴 void

SpawnSingleMob() 공개 메소드

Creates mob in puzzle, in place.
public SpawnSingleMob ( string mobGroupName, int raceId, int amount, Placement placement = Placement.Random ) : void
mobGroupName string Name of the mob, for reference.
raceId int Race to spawn.
amount int Number of monsters to spawn.
placement Placement
리턴 void

SpawnSingleMob() 공개 메소드

Creates mob in puzzle, in this place.
public SpawnSingleMob ( string mobGroupName, string mobToSpawn = null, Placement placement = Placement.Random ) : void
mobGroupName string Name of the mob, for reference.
mobToSpawn string Mob to spawn (Mob1-3), leave as null for auto select.
placement Placement
리턴 void