C# Class MrGravity.Game_Objects.Static_Objects.Wall

Inheritance: StaticObject
Afficher le fichier Open project: DizWARE/Mr-Gravity

Méthodes publiques

Méthode 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 méthode

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
Résultat void

Load() public méthode

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
Résultat void

NearestWallPosition() public méthode

public NearestWallPosition ( Vector2 position ) : string>.KeyValuePair
position Microsoft.Xna.Framework.Vector2
Résultat string>.KeyValuePair

Wall() public méthode

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