C# 클래스 WarTornLands.EntityClasses.Entity

상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: floAr/WarTornLands

보호된 프로퍼티들

프로퍼티 타입 설명
_animFacing Facing
_animSource Vector2
_animTarget Microsoft.Xna.Framework.Rectangle
_animTexture Microsoft.Xna.Framework.Graphics.Texture2D
_animated bool
_animationType AnimationType
_canBeAttacked bool
_canBePickedUp bool
_canBeUsed bool
_canSpeak bool
_cm WarTornLands.Counter.CounterManager
_frame int
_frameSize Vector2
_health int
_hitCounter string
_name string
_position Vector2
_radius float
_texture Microsoft.Xna.Framework.Graphics.Texture2D
_tilepos Point
_weaponRange float
_weaponTex Microsoft.Xna.Framework.Graphics.Texture2D
animCounter String

공개 메소드들

메소드 설명
CanBePickedUp ( ) : bool
CanBeUsed ( ) : bool
CanSpeak ( ) : bool
Damage ( int damage ) : int
Draw ( GameTime gameTime ) : void
Entity ( Microsoft.Xna.Framework.Game game, Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, String name = "Entity" ) : System
GetDrawPosition ( ) : Vector2
GetHealth ( ) : int
GetName ( ) : String
GetPosition ( ) : Vector2
GetRelWeaponDrawPos ( ) : Vector2
GetRoundedAngle ( ) : double
GetSize ( ) : Vector2
IdentifyObjektTyp ( ) : int

Gibt den Objekttyp als Zahl zurück.

LoadContent ( Microsoft.Xna.Framework.Content.ContentManager cm ) : void
OnCollide ( Entity source ) : void
OnDie ( ) : void
SetPosition ( Vector2 position ) : void
Update ( GameTime gameTime ) : void
UseThis ( Player player ) : void

메소드 상세

CanBePickedUp() 공개 메소드

public CanBePickedUp ( ) : bool
리턴 bool

CanBeUsed() 공개 메소드

public CanBeUsed ( ) : bool
리턴 bool

CanSpeak() 공개 메소드

public CanSpeak ( ) : bool
리턴 bool

Damage() 공개 메소드

public Damage ( int damage ) : int
damage int
리턴 int

Draw() 공개 메소드

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

Entity() 공개 메소드

public Entity ( Microsoft.Xna.Framework.Game game, Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, String name = "Entity" ) : System
game Microsoft.Xna.Framework.Game
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
name String
리턴 System

GetDrawPosition() 공개 메소드

public GetDrawPosition ( ) : Vector2
리턴 Vector2

GetHealth() 공개 메소드

public GetHealth ( ) : int
리턴 int

GetName() 공개 메소드

public GetName ( ) : String
리턴 String

GetPosition() 공개 메소드

public GetPosition ( ) : Vector2
리턴 Vector2

GetRelWeaponDrawPos() 공개 메소드

public GetRelWeaponDrawPos ( ) : Vector2
리턴 Vector2

GetRoundedAngle() 공개 메소드

public GetRoundedAngle ( ) : double
리턴 double

GetSize() 공개 메소드

public GetSize ( ) : Vector2
리턴 Vector2

IdentifyObjektTyp() 공개 메소드

Gibt den Objekttyp als Zahl zurück.
public IdentifyObjektTyp ( ) : int
리턴 int

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager cm ) : void
cm Microsoft.Xna.Framework.Content.ContentManager
리턴 void

OnCollide() 공개 메소드

public OnCollide ( Entity source ) : void
source Entity
리턴 void

OnDie() 공개 메소드

public OnDie ( ) : void
리턴 void

SetPosition() 공개 메소드

public SetPosition ( Vector2 position ) : void
position Vector2
리턴 void

Update() 공개 메소드

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

UseThis() 공개 메소드

public UseThis ( Player player ) : void
player WarTornLands.PlayerClasses.Player
리턴 void

프로퍼티 상세

_animFacing 보호되어 있는 프로퍼티

protected Facing _animFacing
리턴 Facing

_animSource 보호되어 있는 프로퍼티

protected Vector2 _animSource
리턴 Vector2

_animTarget 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework _animTarget
리턴 Microsoft.Xna.Framework.Rectangle

_animTexture 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics _animTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

_animated 보호되어 있는 프로퍼티

protected bool _animated
리턴 bool

_animationType 보호되어 있는 프로퍼티

protected AnimationType _animationType
리턴 AnimationType

_canBeAttacked 보호되어 있는 프로퍼티

protected bool _canBeAttacked
리턴 bool

_canBePickedUp 보호되어 있는 프로퍼티

protected bool _canBePickedUp
리턴 bool

_canBeUsed 보호되어 있는 프로퍼티

protected bool _canBeUsed
리턴 bool

_canSpeak 보호되어 있는 프로퍼티

protected bool _canSpeak
리턴 bool

_cm 보호되어 있는 프로퍼티

protected CounterManager,WarTornLands.Counter _cm
리턴 WarTornLands.Counter.CounterManager

_frame 보호되어 있는 프로퍼티

protected int _frame
리턴 int

_frameSize 보호되어 있는 프로퍼티

protected Vector2 _frameSize
리턴 Vector2

_health 보호되어 있는 프로퍼티

protected int _health
리턴 int

_hitCounter 보호되어 있는 프로퍼티

protected string _hitCounter
리턴 string

_name 보호되어 있는 프로퍼티

protected string _name
리턴 string

_position 보호되어 있는 프로퍼티

protected Vector2 _position
리턴 Vector2

_radius 보호되어 있는 프로퍼티

protected float _radius
리턴 float

_texture 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics _texture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

_tilepos 보호되어 있는 프로퍼티

protected Point _tilepos
리턴 Point

_weaponRange 보호되어 있는 프로퍼티

protected float _weaponRange
리턴 float

_weaponTex 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics _weaponTex
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

animCounter 보호되어 있는 프로퍼티

protected String animCounter
리턴 String