C# Class hyades.entity.Enemy

Inheritance: Entity
Show file Open project: zfedoran/bubblebound

Public Properties

Property Type Description
body hyades.physics.PressureBody
max_speed float
player Character
radius float
rand System.Random
shape hyades.physics.Shape
target Vector2

Public Methods

Method Description
Draw ( GraphicsDevice device, Camera camera ) : void
Enemy ( ) : System
SetPosition ( Vector2 position ) : void
SetVelocity ( Vector2 velocity ) : void
Update ( double elapsed ) : void
UpdateTarget ( Physics physics, double elapsed ) : void

Private Methods

Method Description
LimitSpeed ( ) : void

Method Details

Draw() public method

public Draw ( GraphicsDevice device, Camera camera ) : void
device GraphicsDevice
camera Camera
return void

Enemy() public method

public Enemy ( ) : System
return System

SetPosition() public method

public SetPosition ( Vector2 position ) : void
position Vector2
return void

SetVelocity() public method

public SetVelocity ( Vector2 velocity ) : void
velocity Vector2
return void

Update() public method

public Update ( double elapsed ) : void
elapsed double
return void

UpdateTarget() public method

public UpdateTarget ( Physics physics, double elapsed ) : void
physics hyades.physics.Physics
elapsed double
return void

Property Details

body public property

public PressureBody,hyades.physics body
return hyades.physics.PressureBody

max_speed public property

public float max_speed
return float

player public static property

public static Character,hyades.entity player
return Character

radius public property

public float radius
return float

rand public static property

public static Random,System rand
return System.Random

shape public property

public Shape,hyades.physics shape
return hyades.physics.Shape

target public property

public Vector2 target
return Vector2