C# Class Terrarium.Game.TeleportZone

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

Méthodes publiques

Méthode 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 méthode

Clones a TeleportZone object.
public Clone ( ) : TeleportZone
Résultat TeleportZone

Contains() public méthode

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

SetRectangle() public méthode

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

SetVector() public méthode

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

TeleportZone() public méthode

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