C# Class Terrarium.Game.Teleporter

Mostra file Open project: eugeniomiro/Terrarium Class Usage Examples

Public Methods

Method 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 method

Clones a teleporter to create a new copy.
public Clone ( ) : Teleporter
return Teleporter

GetTeleportZone() public method

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

GetTeleportZones() public method

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

IsInTeleporter() public method

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
return System.Boolean

Move() public method

Moves all teleporation zones around the board.
public Move ( ) : void
return void

Teleporter() public method

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