C# Класс Terrarium.Game.Teleporter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : Teleporter

Clones a teleporter to create a new copy.

GetTeleportZone ( int ID ) : TeleportZone

Provides access to the teleportation zones by ID.

GetTeleportZones ( ) : Terrarium.Game.TeleportZone[]

Provides access to the collection of TeleportZone objects.

IsInTeleporter ( OrganismBase.OrganismState state ) : System.Boolean

Determines if a given creature exists within any of the teleport zones and if so notifies the caller.

Move ( ) : void

Moves all teleporation zones around the board.

Teleporter ( int zoneCount ) : System

Creates a Teleporter with the specified number of zones.

Описание методов

Clone() публичный Метод

Clones a teleporter to create a new copy.
public Clone ( ) : Teleporter
Результат Teleporter

GetTeleportZone() публичный Метод

Provides access to the teleportation zones by ID.
public GetTeleportZone ( int ID ) : TeleportZone
ID int The ID for the teleporter to retrieve.
Результат TeleportZone

GetTeleportZones() публичный Метод

Provides access to the collection of TeleportZone objects.
public GetTeleportZones ( ) : Terrarium.Game.TeleportZone[]
Результат Terrarium.Game.TeleportZone[]

IsInTeleporter() публичный Метод

Determines if a given creature exists within any of the teleport zones and if so notifies the caller.
public IsInTeleporter ( OrganismBase.OrganismState state ) : System.Boolean
state OrganismBase.OrganismState The organism state to be checked
Результат System.Boolean

Move() публичный Метод

Moves all teleporation zones around the board.
public Move ( ) : void
Результат void

Teleporter() публичный Метод

Creates a Teleporter with the specified number of zones.
public Teleporter ( int zoneCount ) : System
zoneCount int The number of moving teleport zones.
Результат System