Click or drag to resize
AnimalBeginDefending Method

Method used to command a creature to begin defending against a specific target creature. You can only defend against one creature at a time, so only the final call to BeginDefending will actually be used in the upcoming turn.

Once your creature has finished defending, the DefendCompleted event will be fired and your event handler will be called if you provided one. You can use this event to determine the results of your defense.

Namespace: Terrarium.Sdk.Classes.Creature
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public void BeginDefending(
	AnimalState targetAnimal
)

Parameters

targetAnimal
Type: Terrarium.Sdk.Classes.StateAnimalState
The AnimalState that represents the animal you want to defend against.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the targetAnimal parameter is null.
See Also