C# Class Shooter2D.Player

Inheritance: Object
Mostrar archivo Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Properties

Property Type Description
Dead bool
FireRate double
Health float
InterpolatedAngle float
InterpolatedPosition Microsoft.Xna.Framework.Vector2
Killer Player
Kills ushort
Name string
RespawnTimer double
Slot byte
Speed Microsoft.Xna.Framework.Vector2
Team byte
Weapon byte

Private Properties

Property Type Description

Public Methods

Method Description
Add ( Player P ) : Player
Die ( ) : void
Draw ( ) : void
Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Opacity, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Fire ( Vector2 Position, float Angle ) : void
Get ( NetConnection Connection ) : Player
Load ( ) : void
Move ( Vector2 Offset ) : void
Player ( byte Slot, string Name ) : EzGame
Player ( string Name ) : EzGame
Remove ( Player P ) : bool
Respawn ( Vector2 Position ) : void
Set ( byte Slot, Player P ) : Player
Update ( GameTime Time ) : void
VolumeFromDistance ( Vector2 Position, float FadeUnder, uint MaxUnder ) : float
VolumeFromDistanceToSelf ( Vector2 Position, float FadeUnder, uint MaxUnder ) : float

Method Details

Add() public static method

public static Add ( Player P ) : Player
P Player
return Player

Die() public method

public Die ( ) : void
return void

Draw() public method

public Draw ( ) : void
return void

Draw() public method

public Draw ( Batch Batch, Vector2 Position, Microsoft.Xna.Framework.Color Color, float Opacity, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Batch EzGame.Perspective.Planar.Batch
Position Microsoft.Xna.Framework.Vector2
Color Microsoft.Xna.Framework.Color
Opacity float
Angle float
Origin Origin
Scale float
Effect SpriteEffects
Layer float
return void

Fire() public method

public Fire ( Vector2 Position, float Angle ) : void
Position Microsoft.Xna.Framework.Vector2
Angle float
return void

Get() public static method

public static Get ( NetConnection Connection ) : Player
Connection Lidgren.Network.NetConnection
return Player

Load() public method

public Load ( ) : void
return void

Move() public method

public Move ( Vector2 Offset ) : void
Offset Microsoft.Xna.Framework.Vector2
return void

Player() public method

public Player ( byte Slot, string Name ) : EzGame
Slot byte
Name string
return EzGame

Player() public method

public Player ( string Name ) : EzGame
Name string
return EzGame

Remove() public static method

public static Remove ( Player P ) : bool
P Player
return bool

Respawn() public method

public Respawn ( Vector2 Position ) : void
Position Microsoft.Xna.Framework.Vector2
return void

Set() public static method

public static Set ( byte Slot, Player P ) : Player
Slot byte
P Player
return Player

Update() public method

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

VolumeFromDistance() public method

public VolumeFromDistance ( Vector2 Position, float FadeUnder, uint MaxUnder ) : float
Position Microsoft.Xna.Framework.Vector2
FadeUnder float
MaxUnder uint
return float

VolumeFromDistanceToSelf() public static method

public static VolumeFromDistanceToSelf ( Vector2 Position, float FadeUnder, uint MaxUnder ) : float
Position Microsoft.Xna.Framework.Vector2
FadeUnder float
MaxUnder uint
return float

Property Details

Dead public_oe property

public bool Dead
return bool

FireRate public_oe property

public double FireRate
return double

Health public_oe property

public float Health
return float

InterpolatedAngle public_oe property

public float InterpolatedAngle
return float

InterpolatedPosition public_oe property

public Vector2,Microsoft.Xna.Framework InterpolatedPosition
return Microsoft.Xna.Framework.Vector2

Killer public_oe property

public Player,Shooter2D Killer
return Player

Kills public_oe property

public ushort Kills
return ushort

Name public_oe property

public string Name
return string

RespawnTimer public_oe property

public double RespawnTimer
return double

Slot public_oe property

public byte Slot
return byte

Speed public_oe property

public Vector2,Microsoft.Xna.Framework Speed
return Microsoft.Xna.Framework.Vector2

Team public_oe property

public byte Team
return byte

Weapon public_oe property

public byte Weapon
return byte