C# Class WarTornLands.EntityClasses.Entity

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: floAr/WarTornLands

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

public CanBePickedUp ( ) : bool
Résultat bool

CanBeUsed() public méthode

public CanBeUsed ( ) : bool
Résultat bool

CanSpeak() public méthode

public CanSpeak ( ) : bool
Résultat bool

Damage() public méthode

public Damage ( int damage ) : int
damage int
Résultat int

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Entity() public méthode

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
Résultat System

GetDrawPosition() public méthode

public GetDrawPosition ( ) : Vector2
Résultat Vector2

GetHealth() public méthode

public GetHealth ( ) : int
Résultat int

GetName() public méthode

public GetName ( ) : String
Résultat String

GetPosition() public méthode

public GetPosition ( ) : Vector2
Résultat Vector2

GetRelWeaponDrawPos() public méthode

public GetRelWeaponDrawPos ( ) : Vector2
Résultat Vector2

GetRoundedAngle() public méthode

public GetRoundedAngle ( ) : double
Résultat double

GetSize() public méthode

public GetSize ( ) : Vector2
Résultat Vector2

IdentifyObjektTyp() public méthode

Gibt den Objekttyp als Zahl zurück.
public IdentifyObjektTyp ( ) : int
Résultat int

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager cm ) : void
cm Microsoft.Xna.Framework.Content.ContentManager
Résultat void

OnCollide() public méthode

public OnCollide ( Entity source ) : void
source Entity
Résultat void

OnDie() public méthode

public OnDie ( ) : void
Résultat void

SetPosition() public méthode

public SetPosition ( Vector2 position ) : void
position Vector2
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UseThis() public méthode

public UseThis ( Player player ) : void
player WarTornLands.PlayerClasses.Player
Résultat void

Property Details

_animFacing protected_oe property

protected Facing _animFacing
Résultat Facing

_animSource protected_oe property

protected Vector2 _animSource
Résultat Vector2

_animTarget protected_oe property

protected Rectangle,Microsoft.Xna.Framework _animTarget
Résultat Microsoft.Xna.Framework.Rectangle

_animTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _animTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_animated protected_oe property

protected bool _animated
Résultat bool

_animationType protected_oe property

protected AnimationType _animationType
Résultat AnimationType

_canBeAttacked protected_oe property

protected bool _canBeAttacked
Résultat bool

_canBePickedUp protected_oe property

protected bool _canBePickedUp
Résultat bool

_canBeUsed protected_oe property

protected bool _canBeUsed
Résultat bool

_canSpeak protected_oe property

protected bool _canSpeak
Résultat bool

_cm protected_oe property

protected CounterManager,WarTornLands.Counter _cm
Résultat WarTornLands.Counter.CounterManager

_frame protected_oe property

protected int _frame
Résultat int

_frameSize protected_oe property

protected Vector2 _frameSize
Résultat Vector2

_health protected_oe property

protected int _health
Résultat int

_hitCounter protected_oe property

protected string _hitCounter
Résultat string

_name protected_oe property

protected string _name
Résultat string

_position protected_oe property

protected Vector2 _position
Résultat Vector2

_radius protected_oe property

protected float _radius
Résultat float

_texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_tilepos protected_oe property

protected Point _tilepos
Résultat Point

_weaponRange protected_oe property

protected float _weaponRange
Résultat float

_weaponTex protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _weaponTex
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

animCounter protected_oe property

protected String animCounter
Résultat String