C# Класс PrinceGame.Splash

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

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

Метод Описание
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void

Draws the animated player.

Reset ( Vector2 position, SpriteEffects spriteEffect ) : void

Resets the player to life.

Show ( ) : void
Show ( Enumeration priority ) : void
Show ( Enumeration priority, System stoppable ) : void
Show ( bool stoppable ) : void
Splash ( RoomNew room, Vector2 position, GraphicsDevice GraphicsDevice__1, SpriteEffects spriteEffect, bool player ) : System

Constructors a new player.

Update ( GameTime gameTime, KeyboardState keyboardState, GamePadState gamePadState, TouchCollection touchState, AccelerometerState accelState, DisplayOrientation orientation ) : void

Handles input, performs physics, and animates the player sprite.

We pass in all of the input states so that our game is only polling the hardware once per frame. We also pass the game's orientation because when using the accelerometer, we need to reverse our motion when the orientation is in the LandscapeRight orientation.

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

Метод Описание
LoadContent ( ) : void

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

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

Draws the animated player.
public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

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

Resets the player to life.
public Reset ( Vector2 position, SpriteEffects spriteEffect ) : void
position Vector2 The position to come to life at.
spriteEffect SpriteEffects
Результат void

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

public Show ( ) : void
Результат void

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

public Show ( Enumeration priority ) : void
priority Enumeration
Результат void

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

public Show ( Enumeration priority, System stoppable ) : void
priority Enumeration
stoppable System
Результат void

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

public Show ( bool stoppable ) : void
stoppable bool
Результат void

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

Constructors a new player.
public Splash ( RoomNew room, Vector2 position, GraphicsDevice GraphicsDevice__1, SpriteEffects spriteEffect, bool player ) : System
room RoomNew
position Vector2
GraphicsDevice__1 GraphicsDevice
spriteEffect SpriteEffects
player bool
Результат System

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

Handles input, performs physics, and animates the player sprite.
We pass in all of the input states so that our game is only polling the hardware once per frame. We also pass the game's orientation because when using the accelerometer, we need to reverse our motion when the orientation is in the LandscapeRight orientation.
public Update ( GameTime gameTime, KeyboardState keyboardState, GamePadState gamePadState, TouchCollection touchState, AccelerometerState accelState, DisplayOrientation orientation ) : void
gameTime Microsoft.Xna.Framework.GameTime
keyboardState Microsoft.Xna.Framework.Input.KeyboardState
gamePadState Microsoft.Xna.Framework.Input.GamePadState
touchState TouchCollection
accelState AccelerometerState
orientation DisplayOrientation
Результат void