C# Class WarTornLands.Entities.Modules.Think.ThinkRoamAround

Inheritance: WarTornLands.Entities.Modules.BaseModule, IThinkModule
Show file Open project: floAr/WarTornLands

Public Methods

Method Description
SetOwner ( Entity owner ) : void
SetZone ( Zone zone ) : void
ThinkRoamAround ( DataRow data ) : System
ThinkRoamAround ( Vector2 anchor, float roamingRadius, float attackRange = 60, float sightRange = 110, int damage = 10, bool canBeAttacked = true ) : System
Update ( GameTime gameTime ) : void

Private Methods

Method Description
AggroActions ( GameTime gameTime ) : void
CheckForTarget ( ) : void
CreateTargetPosition ( ) : Vector2
IdleActions ( GameTime gameTime ) : void

Method Details

SetOwner() public method

public SetOwner ( Entity owner ) : void
owner Entity
return void

SetZone() public method

public SetZone ( Zone zone ) : void
zone Zone
return void

ThinkRoamAround() public method

public ThinkRoamAround ( DataRow data ) : System
data System.Data.DataRow
return System

ThinkRoamAround() public method

public ThinkRoamAround ( Vector2 anchor, float roamingRadius, float attackRange = 60, float sightRange = 110, int damage = 10, bool canBeAttacked = true ) : System
anchor Vector2
roamingRadius float
attackRange float
sightRange float
damage int
canBeAttacked bool
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void