C# 클래스 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
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EnsureOcclusion bool
Mode BillboardMode
monstersTextures List

공개 메소드들

메소드 설명
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

메소드 상세

Draw() 공개 메소드

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
리턴 void

HPBillboardSystem() 공개 메소드

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
리턴 System

drawBillboard() 공개 메소드

public drawBillboard ( int monsterId ) : void
monsterId int
리턴 void

drawBillboards() 공개 메소드

public drawBillboards ( ) : void
리턴 void

drawOpaquePixels() 공개 메소드

public drawOpaquePixels ( ) : void
리턴 void

drawTransparentPixels() 공개 메소드

public drawTransparentPixels ( ) : void
리턴 void

generateParticles() 공개 메소드

public generateParticles ( ) : void
리턴 void

getTexture() 공개 정적인 메소드

public static getTexture ( int health ) : Microsoft.Xna.Framework.Graphics.Texture2D
health int
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

setEffectParameters() 공개 메소드

public setEffectParameters ( Matrix View, Matrix Projection, Vector3 Up, Vector3 Right ) : void
View Matrix
Projection Matrix
Up Vector3
Right Vector3
리턴 void

setTexture() 공개 메소드

public setTexture ( int j ) : void
j int
리턴 void

프로퍼티 상세

EnsureOcclusion 공개적으로 프로퍼티

public bool EnsureOcclusion
리턴 bool

Mode 공개적으로 프로퍼티

public BillboardMode Mode
리턴 BillboardMode

monstersTextures 공개적으로 프로퍼티

public List monstersTextures
리턴 List