C# Class WarTornLands.EntityClasses.Entity

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
ファイルを表示 Open project: floAr/WarTornLands

Protected Properties

Property Type Description
_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

Public Methods

Method Description
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

Method Details

CanBePickedUp() public method

public CanBePickedUp ( ) : bool
return bool

CanBeUsed() public method

public CanBeUsed ( ) : bool
return bool

CanSpeak() public method

public CanSpeak ( ) : bool
return bool

Damage() public method

public Damage ( int damage ) : int
damage int
return int

Draw() public method

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

Entity() public method

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
return System

GetDrawPosition() public method

public GetDrawPosition ( ) : Vector2
return Vector2

GetHealth() public method

public GetHealth ( ) : int
return int

GetName() public method

public GetName ( ) : String
return String

GetPosition() public method

public GetPosition ( ) : Vector2
return Vector2

GetRelWeaponDrawPos() public method

public GetRelWeaponDrawPos ( ) : Vector2
return Vector2

GetRoundedAngle() public method

public GetRoundedAngle ( ) : double
return double

GetSize() public method

public GetSize ( ) : Vector2
return Vector2

IdentifyObjektTyp() public method

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

LoadContent() public method

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

OnCollide() public method

public OnCollide ( Entity source ) : void
source Entity
return void

OnDie() public method

public OnDie ( ) : void
return void

SetPosition() public method

public SetPosition ( Vector2 position ) : void
position Vector2
return void

Update() public method

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

UseThis() public method

public UseThis ( Player player ) : void
player WarTornLands.PlayerClasses.Player
return void

Property Details

_animFacing protected_oe property

protected Facing _animFacing
return Facing

_animSource protected_oe property

protected Vector2 _animSource
return Vector2

_animTarget protected_oe property

protected Rectangle,Microsoft.Xna.Framework _animTarget
return Microsoft.Xna.Framework.Rectangle

_animTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _animTexture
return Microsoft.Xna.Framework.Graphics.Texture2D

_animated protected_oe property

protected bool _animated
return bool

_animationType protected_oe property

protected AnimationType _animationType
return AnimationType

_canBeAttacked protected_oe property

protected bool _canBeAttacked
return bool

_canBePickedUp protected_oe property

protected bool _canBePickedUp
return bool

_canBeUsed protected_oe property

protected bool _canBeUsed
return bool

_canSpeak protected_oe property

protected bool _canSpeak
return bool

_cm protected_oe property

protected CounterManager,WarTornLands.Counter _cm
return WarTornLands.Counter.CounterManager

_frame protected_oe property

protected int _frame
return int

_frameSize protected_oe property

protected Vector2 _frameSize
return Vector2

_health protected_oe property

protected int _health
return int

_hitCounter protected_oe property

protected string _hitCounter
return string

_name protected_oe property

protected string _name
return string

_position protected_oe property

protected Vector2 _position
return Vector2

_radius protected_oe property

protected float _radius
return float

_texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _texture
return Microsoft.Xna.Framework.Graphics.Texture2D

_tilepos protected_oe property

protected Point _tilepos
return Point

_weaponRange protected_oe property

protected float _weaponRange
return float

_weaponTex protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _weaponTex
return Microsoft.Xna.Framework.Graphics.Texture2D

animCounter protected_oe property

protected String animCounter
return String