C# Класс PlayDead.Character

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Character ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Draw ( SpriteBatch spriteBatch ) : void

Draws the character onto the screen

KeyInput ( ) : void

The KeyInput method handles all keyboard input for the character.

Move ( ) : void

Handles the actual movement of the character, and animation thereof

Приватные методы

Метод Описание
CheckCollision ( Rectangle bounds ) : bool
SlowDown ( int i ) : void

Gradually slows the character down if the character stops running

Описание методов

Character() публичный Метод

public Character ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

Draw() публичный Метод

Draws the character onto the screen
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch to use to render this sprite
Результат void

KeyInput() публичный Метод

The KeyInput method handles all keyboard input for the character.
public KeyInput ( ) : void
Результат void

Move() публичный Метод

Handles the actual movement of the character, and animation thereof
public Move ( ) : void
Результат void