C# Class Terrarium.Game.Teleporter

Afficher le fichier Open project: eugeniomiro/Terrarium Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Clone() public méthode

Clones a teleporter to create a new copy.
public Clone ( ) : Teleporter
Résultat Teleporter

GetTeleportZone() public méthode

Provides access to the teleportation zones by ID.
public GetTeleportZone ( int ID ) : TeleportZone
ID int The ID for the teleporter to retrieve.
Résultat TeleportZone

GetTeleportZones() public méthode

Provides access to the collection of TeleportZone objects.
public GetTeleportZones ( ) : Terrarium.Game.TeleportZone[]
Résultat Terrarium.Game.TeleportZone[]

IsInTeleporter() public méthode

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
Résultat System.Boolean

Move() public méthode

Moves all teleporation zones around the board.
public Move ( ) : void
Résultat void

Teleporter() public méthode

Creates a Teleporter with the specified number of zones.
public Teleporter ( int zoneCount ) : System
zoneCount int The number of moving teleport zones.
Résultat System