C# Class Terrarium.Game.TeleportZone

ファイルを表示 Open project: eugeniomiro/Terrarium Class Usage Examples

Public Methods

Method Description
Clone ( ) : TeleportZone

Clones a TeleportZone object.

Contains ( OrganismBase.OrganismState state ) : System.Boolean

Determines if the given organism state is within teleport zone.

SetRectangle ( Rectangle rectangle ) : TeleportZone

Sets the size and location of the teleport zone.

SetVector ( OrganismBase.MovementVector vector ) : TeleportZone

Get a new teleport zone that is initialized with a different movement vector.

TeleportZone ( Rectangle rectangle, OrganismBase.MovementVector vector, int ID ) : System

Creates a new teleportzone with all fields initialized.

Method Details

Clone() public method

Clones a TeleportZone object.
public Clone ( ) : TeleportZone
return TeleportZone

Contains() public method

Determines if the given organism state is within teleport zone.
public Contains ( OrganismBase.OrganismState state ) : System.Boolean
state OrganismBase.OrganismState The state being checked.
return System.Boolean

SetRectangle() public method

Sets the size and location of the teleport zone.
public SetRectangle ( Rectangle rectangle ) : TeleportZone
rectangle System.Drawing.Rectangle The new size and location of this teleporter.
return TeleportZone

SetVector() public method

Get a new teleport zone that is initialized with a different movement vector.
public SetVector ( OrganismBase.MovementVector vector ) : TeleportZone
vector OrganismBase.MovementVector The new movement vector.
return TeleportZone

TeleportZone() public method

Creates a new teleportzone with all fields initialized.
public TeleportZone ( Rectangle rectangle, OrganismBase.MovementVector vector, int ID ) : System
rectangle System.Drawing.Rectangle The location and size of the zone.
vector OrganismBase.MovementVector The movement vector of the zone.
ID int The ID for this zone.
return System