C# Class Touhou.Battle.Enemy

ファイルを表示 Open project: schedule-productions/Touhou Class Usage Examples

Public Properties

Property Type Description
animation Effect.AnimatedTexture
destroyed System.Boolean
game Microsoft.Xna.Framework.Game
health int
level Level
position Vector2
radius int
velocity Vector2

Public Methods

Method Description
Damage ( Bullet bullet ) : void
Destroy ( ) : void
Enemy ( Microsoft.Xna.Framework.Game game, Level level, int x, int radius, int speedX, int speedY, int health ) : System
GetCenter ( ) : Vector2
GetCenterX ( ) : float
GetCenterY ( ) : float
Update ( float dt ) : void

Method Details

Damage() public method

public Damage ( Bullet bullet ) : void
bullet Bullet
return void

Destroy() public method

public Destroy ( ) : void
return void

Enemy() public method

public Enemy ( Microsoft.Xna.Framework.Game game, Level level, int x, int radius, int speedX, int speedY, int health ) : System
game Microsoft.Xna.Framework.Game
level Level
x int
radius int
speedX int
speedY int
health int
return System

GetCenter() public method

public GetCenter ( ) : Vector2
return Vector2

GetCenterX() public method

public GetCenterX ( ) : float
return float

GetCenterY() public method

public GetCenterY ( ) : float
return float

Update() public method

public Update ( float dt ) : void
dt float
return void

Property Details

animation public_oe property

public Effect.AnimatedTexture animation
return Effect.AnimatedTexture

destroyed public_oe property

public Boolean,System destroyed
return System.Boolean

game public_oe property

public Game,Microsoft.Xna.Framework game
return Microsoft.Xna.Framework.Game

health public_oe property

public int health
return int

level public_oe property

public Level,Touhou.Battle level
return Level

position public_oe property

public Vector2 position
return Vector2

radius public_oe property

public int radius
return int

velocity public_oe property

public Vector2 velocity
return Vector2