C# Class PrinceGame.Tile

Afficher le fichier Open project: salvadorc17/Prince-Monogame Class Usage Examples

Méthodes publiques

Свойство Type Description
CHOMPER_DISTANCE_PENETRATION_L int
CHOMPER_DISTANCE_PENETRATION_R int
GROUND int
HEIGHT int
MASK_BLOCK Microsoft.Xna.Framework.Rectangle
MASK_DOOR Microsoft.Xna.Framework.Rectangle
MASK_FLOOR Microsoft.Xna.Framework.Rectangle
MASK_POSTS Microsoft.Xna.Framework.Rectangle
PERSPECTIVE int
REALHEIGHT int
REALWIDTH int
Size Vector2
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Type Enumeration.TileType
WIDTH int
collision Enumeration.TileCollision
item Item
nextTileType Enumeration.TileType
tileAnimation AnimationSequence
tileState TileState

Protected Properties

Свойство Type Description
room RoomNew

Méthodes publiques

Méthode Description
HandleCollision ( ) : void
Tile ( ) : System
Tile ( RoomNew room, Microsoft.Xna.Framework.Content.ContentManager Content, Enumeration tileType, Enumeration state, Enumeration eitem, Enumeration NextTileType__1 ) : System
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.

Method Details

HandleCollision() public méthode

public HandleCollision ( ) : void
Résultat void

Tile() public méthode

public Tile ( ) : System
Résultat System

Tile() public méthode

public Tile ( RoomNew room, Microsoft.Xna.Framework.Content.ContentManager Content, Enumeration tileType, Enumeration state, Enumeration eitem, Enumeration NextTileType__1 ) : System
room RoomNew
Content Microsoft.Xna.Framework.Content.ContentManager
tileType Enumeration
state Enumeration
eitem Enumeration
NextTileType__1 Enumeration
Résultat System

Update() public méthode

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

Property Details

CHOMPER_DISTANCE_PENETRATION_L public_oe static_oe property

public static int CHOMPER_DISTANCE_PENETRATION_L
Résultat int

CHOMPER_DISTANCE_PENETRATION_R public_oe static_oe property

public static int CHOMPER_DISTANCE_PENETRATION_R
Résultat int

GROUND public_oe static_oe property

public static int GROUND
Résultat int

HEIGHT public_oe static_oe property

public static int HEIGHT
Résultat int

MASK_BLOCK public_oe static_oe property

public static Rectangle,Microsoft.Xna.Framework MASK_BLOCK
Résultat Microsoft.Xna.Framework.Rectangle

MASK_DOOR public_oe static_oe property

public static Rectangle,Microsoft.Xna.Framework MASK_DOOR
Résultat Microsoft.Xna.Framework.Rectangle

MASK_FLOOR public_oe static_oe property

public static Rectangle,Microsoft.Xna.Framework MASK_FLOOR
Résultat Microsoft.Xna.Framework.Rectangle

MASK_POSTS public_oe static_oe property

public static Rectangle,Microsoft.Xna.Framework MASK_POSTS
Résultat Microsoft.Xna.Framework.Rectangle

PERSPECTIVE public_oe static_oe property

public static int PERSPECTIVE
Résultat int

REALHEIGHT public_oe static_oe property

public static int REALHEIGHT
Résultat int

REALWIDTH public_oe static_oe property

public static int REALWIDTH
Résultat int

Size public_oe static_oe property

public static Vector2 Size
Résultat Vector2

Texture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

Type public_oe property

public Enumeration.TileType Type
Résultat Enumeration.TileType

WIDTH public_oe static_oe property

public static int WIDTH
Résultat int

collision public_oe property

public Enumeration.TileCollision collision
Résultat Enumeration.TileCollision

item public_oe property

public Item item
Résultat Item

nextTileType public_oe property

public Enumeration.TileType nextTileType
Résultat Enumeration.TileType

room protected_oe property

protected RoomNew,PrinceGame room
Résultat RoomNew

tileAnimation public_oe property

public AnimationSequence,PrinceGame tileAnimation
Résultat AnimationSequence

tileState public_oe property

public TileState,PrinceGame tileState
Résultat TileState