C# Class CannonGame.SolidObstacle

Inheritance: GameObject
ファイルを表示 Open project: obcilion/xnaKanonSpill Class Usage Examples

Public Properties

Property Type Description
obstacle Microsoft.Xna.Framework.Rectangle

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int width, int height ) : System
SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int height, int width, float velocity, char axis, int distance ) : System
Update ( ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

SolidObstacle() public method

public SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int width, int height ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
width int
height int
return System

SolidObstacle() public method

public SolidObstacle ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int height, int width, float velocity, char axis, int distance ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
height int
width int
velocity float
axis char
distance int
return System

Update() public method

public Update ( ) : void
return void

Property Details

obstacle public_oe property

public Rectangle,Microsoft.Xna.Framework obstacle
return Microsoft.Xna.Framework.Rectangle