C# Class Shooter.Entities.Enemy

Inheritance: Character
ファイルを表示 Open project: JoeyTheAsian/Just-Force Class Usage Examples

Protected Properties

Property Type Description
aggro bool
heading double
playerLoc Coord
scanArc double
scanRange int
scanTime double
scanTimer double
speed double
turnSpeed double
visionRange int

Public Methods

Method Description
Enemy ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r, float direction ) : Microsoft.Xna.Framework
GetPath ( Coord startPos, Coord endPos, Map &m ) : List
IsPointInPolygon ( List triangle, Coord player ) : bool
Move ( double elapsedTime, Coord end ) : bool
Rotate ( double deg ) : void
RotateTo ( double deg ) : void
Search ( Node curNode, Coord startPos, Coord endPos, Node &nodeMap ) : bool
UpdateAI ( Map &m, double elapsedTime, Coord player ) : bool
checkAdjacent ( Node curNode, Coord end, Node &nodeMap ) : List

Method Details

Enemy() public method

public Enemy ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r, float direction ) : Microsoft.Xna.Framework
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
t string
r Microsoft.Xna.Framework.Rectangle
direction float
return Microsoft.Xna.Framework

GetPath() public method

public GetPath ( Coord startPos, Coord endPos, Map &m ) : List
startPos Coord
endPos Coord
m Shooter.MapClasses.Map
return List

IsPointInPolygon() public method

public IsPointInPolygon ( List triangle, Coord player ) : bool
triangle List
player Coord
return bool

Move() public method

public Move ( double elapsedTime, Coord end ) : bool
elapsedTime double
end Coord
return bool

Rotate() public method

public Rotate ( double deg ) : void
deg double
return void

RotateTo() public method

public RotateTo ( double deg ) : void
deg double
return void

Search() public method

public Search ( Node curNode, Coord startPos, Coord endPos, Node &nodeMap ) : bool
curNode Shooter.Other_tools.Node
startPos Coord
endPos Coord
nodeMap Shooter.Other_tools.Node
return bool

UpdateAI() public method

public UpdateAI ( Map &m, double elapsedTime, Coord player ) : bool
m Shooter.MapClasses.Map
elapsedTime double
player Coord
return bool

checkAdjacent() public method

public checkAdjacent ( Node curNode, Coord end, Node &nodeMap ) : List
curNode Shooter.Other_tools.Node
end Coord
nodeMap Shooter.Other_tools.Node
return List

Property Details

aggro protected_oe property

protected bool aggro
return bool

heading protected_oe property

protected double heading
return double

playerLoc protected_oe property

protected Coord playerLoc
return Coord

scanArc protected_oe property

protected double scanArc
return double

scanRange protected_oe property

protected int scanRange
return int

scanTime protected_oe property

protected double scanTime
return double

scanTimer protected_oe property

protected double scanTimer
return double

speed protected_oe property

protected double speed
return double

turnSpeed protected_oe property

protected double turnSpeed
return double

visionRange protected_oe property

protected int visionRange
return int