C# Class MyGame.HPBillboardSystem

This class represent a special case of billboard system which is the hp billboard system in which all billboards dont have the same texture and texture of each billboards change with time
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Свойство Type Description
EnsureOcclusion bool
Mode BillboardMode
monstersTextures List

Méthodes publiques

Méthode Description
Draw ( Matrix View, Matrix Projection, Vector3 Up, Vector3 Right ) : void

This method renders the current state.

HPBillboardSystem ( GraphicsDevice graphicsDevice, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 billboardSize, List monsters ) : System
drawBillboard ( int monsterId ) : void
drawBillboards ( ) : void
drawOpaquePixels ( ) : void
drawTransparentPixels ( ) : void
generateParticles ( ) : void
getTexture ( int health ) : Microsoft.Xna.Framework.Graphics.Texture2D
setEffectParameters ( Matrix View, Matrix Projection, Vector3 Up, Vector3 Right ) : void
setTexture ( int j ) : void

Method Details

Draw() public méthode

This method renders the current state.
public Draw ( Matrix View, Matrix Projection, Vector3 Up, Vector3 Right ) : void
View Matrix
Projection Matrix
Up Vector3
Right Vector3
Résultat void

HPBillboardSystem() public méthode

public HPBillboardSystem ( GraphicsDevice graphicsDevice, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 billboardSize, List monsters ) : System
graphicsDevice GraphicsDevice
content Microsoft.Xna.Framework.Content.ContentManager
billboardSize Vector2
monsters List
Résultat System

drawBillboard() public méthode

public drawBillboard ( int monsterId ) : void
monsterId int
Résultat void

drawBillboards() public méthode

public drawBillboards ( ) : void
Résultat void

drawOpaquePixels() public méthode

public drawOpaquePixels ( ) : void
Résultat void

drawTransparentPixels() public méthode

public drawTransparentPixels ( ) : void
Résultat void

generateParticles() public méthode

public generateParticles ( ) : void
Résultat void

getTexture() public static méthode

public static getTexture ( int health ) : Microsoft.Xna.Framework.Graphics.Texture2D
health int
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

setEffectParameters() public méthode

public setEffectParameters ( Matrix View, Matrix Projection, Vector3 Up, Vector3 Right ) : void
View Matrix
Projection Matrix
Up Vector3
Right Vector3
Résultat void

setTexture() public méthode

public setTexture ( int j ) : void
j int
Résultat void

Property Details

EnsureOcclusion public_oe property

public bool EnsureOcclusion
Résultat bool

Mode public_oe property

public BillboardMode Mode
Résultat BillboardMode

monstersTextures public_oe property

public List monstersTextures
Résultat List