C# 클래스 MyPolarBear.Entity

상속: ITargetable, IDamageable
파일 보기 프로젝트 열기: sgdc/sgdc-old

공개 프로퍼티들

프로퍼티 타입 설명
bounciness Vector2
delta Vector2

보호된 프로퍼티들

프로퍼티 타입 설명
mAnimator MyPolarBear.Content.Animator

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void
Entity ( Vector2 position ) : System
GetCollisionRect ( ) : Rectangle
GetPosition ( ) : Vector2
GetTargetType ( ) : String
HandleCollisions ( Rectangle levelCollisionBox, Rectangle entityCollisionBox ) : void
Initialize ( ) : void
LoadContent ( ) : void
LoadContent ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float scale ) : void
TakeDamage ( int amount, String damageType, Entity source ) : void
Translate ( Vector2 amount ) : void
Update ( GameTime gameTime ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Entity() 공개 메소드

public Entity ( Vector2 position ) : System
position Vector2
리턴 System

GetCollisionRect() 공개 메소드

public GetCollisionRect ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetPosition() 공개 메소드

public GetPosition ( ) : Vector2
리턴 Vector2

GetTargetType() 공개 메소드

public GetTargetType ( ) : String
리턴 String

HandleCollisions() 공개 메소드

public HandleCollisions ( Rectangle levelCollisionBox, Rectangle entityCollisionBox ) : void
levelCollisionBox Microsoft.Xna.Framework.Rectangle
entityCollisionBox Microsoft.Xna.Framework.Rectangle
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

LoadContent() 공개 메소드

public LoadContent ( ) : void
리턴 void

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float scale ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
scale float
리턴 void

TakeDamage() 공개 메소드

public TakeDamage ( int amount, String damageType, Entity source ) : void
amount int
damageType String
source Entity
리턴 void

Translate() 공개 메소드

public Translate ( Vector2 amount ) : void
amount Vector2
리턴 void

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

bounciness 공개적으로 프로퍼티

public Vector2 bounciness
리턴 Vector2

delta 공개적으로 프로퍼티

public Vector2 delta
리턴 Vector2

mAnimator 보호되어 있는 프로퍼티

protected Animator,MyPolarBear.Content mAnimator
리턴 MyPolarBear.Content.Animator