C# Class MrGravity.Game_Objects.Static_Objects.Wall

Inheritance: StaticObject
ファイルを表示 Open project: DizWARE/Mr-Gravity

Public Methods

Method Description
Draw ( SpriteBatch canvas, GameTime gametime ) : void

Draws the object to the screen

Load ( Microsoft.Xna.Framework.Content.ContentManager content, string name ) : void

This will not do anything. overrides to avoid trying to load this class

NearestWallPosition ( Vector2 position ) : string>.KeyValuePair
Wall ( float friction, List walls ) : System.Collections.Generic

Initializes a new instance of the Wall class.

Method Details

Draw() public method

Draws the object to the screen
public Draw ( SpriteBatch canvas, GameTime gametime ) : void
canvas Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas that the game is being drawn on
gametime Microsoft.Xna.Framework.GameTime The current gametime
return void

Load() public method

This will not do anything. overrides to avoid trying to load this class
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, string name ) : void
content Microsoft.Xna.Framework.Content.ContentManager Content manager
name string Name of the object
return void

NearestWallPosition() public method

public NearestWallPosition ( Vector2 position ) : string>.KeyValuePair
position Microsoft.Xna.Framework.Vector2
return string>.KeyValuePair

Wall() public method

Initializes a new instance of the Wall class.
public Wall ( float friction, List walls ) : System.Collections.Generic
friction float The friction.
walls List
return System.Collections.Generic