C# 클래스 Shooter2D.Player

상속: Object
파일 보기 프로젝트 열기: CodeTreeCommunity/Shooter2D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 정적인 메소드

public static Add ( Player P ) : Player
P Player
리턴 Player

Die() 공개 메소드

public Die ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( ) : void
리턴 void

Draw() 공개 메소드

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
리턴 void

Fire() 공개 메소드

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

Get() 공개 정적인 메소드

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

Load() 공개 메소드

public Load ( ) : void
리턴 void

Move() 공개 메소드

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

Player() 공개 메소드

public Player ( byte Slot, string Name ) : EzGame
Slot byte
Name string
리턴 EzGame

Player() 공개 메소드

public Player ( string Name ) : EzGame
Name string
리턴 EzGame

Remove() 공개 정적인 메소드

public static Remove ( Player P ) : bool
P Player
리턴 bool

Respawn() 공개 메소드

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

Set() 공개 정적인 메소드

public static Set ( byte Slot, Player P ) : Player
Slot byte
P Player
리턴 Player

Update() 공개 메소드

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

VolumeFromDistance() 공개 메소드

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

VolumeFromDistanceToSelf() 공개 정적인 메소드

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

프로퍼티 상세

Dead 공개적으로 프로퍼티

public bool Dead
리턴 bool

FireRate 공개적으로 프로퍼티

public double FireRate
리턴 double

Health 공개적으로 프로퍼티

public float Health
리턴 float

InterpolatedAngle 공개적으로 프로퍼티

public float InterpolatedAngle
리턴 float

InterpolatedPosition 공개적으로 프로퍼티

public Vector2,Microsoft.Xna.Framework InterpolatedPosition
리턴 Microsoft.Xna.Framework.Vector2

Killer 공개적으로 프로퍼티

public Player,Shooter2D Killer
리턴 Player

Kills 공개적으로 프로퍼티

public ushort Kills
리턴 ushort

Name 공개적으로 프로퍼티

public string Name
리턴 string

RespawnTimer 공개적으로 프로퍼티

public double RespawnTimer
리턴 double

Slot 공개적으로 프로퍼티

public byte Slot
리턴 byte

Speed 공개적으로 프로퍼티

public Vector2,Microsoft.Xna.Framework Speed
리턴 Microsoft.Xna.Framework.Vector2

Team 공개적으로 프로퍼티

public byte Team
리턴 byte

Weapon 공개적으로 프로퍼티

public byte Weapon
리턴 byte