C# 클래스 Source.Collisions.Player

A player uses a rectangle for collisions
상속: Polygon
파일 보기 프로젝트 열기: HarkerGameDev/TheGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AbilityOneTime float
Alive bool
AttackTime float
Checkpoints int
CloneTime float
ClonedPlayer AI
CurrentCharacter Character
CurrentState State
Flip SpriteEffects
GrappleRight bool
GrappleTarget Vector2
HookedLocation Vector2
HookedPlayer Player
JetpackEnabled bool
JetpackTime float
JumpSpeed float
JumpTime float
JumpsLeft int
MaxVelocity float
Node LinkedListNode
Place int
PlatformTime float
PrevJump bool
PrevStates Vector2>>.List
Progress float
Projectiles List
Score int
ShowSmear bool
SlideEmitter Source.Graphics.ParticleEmitter
SpawnedPlatform Platform
Sprite Source.Graphics.AnimatedSprite
StunTime float
TargetRadius float
TargetVelocity Direction
WallJump Direction

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void
Kill ( ) : void
Player ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Character character, LinkedListNode checkpoint ) : System
Reset ( ) : void
ResetValues ( ) : void
Update ( float deltaTime ) : void

This method is pretty much like an update() function for the player body since it is called every tick

비공개 메소드들

메소드 설명
DrawLine ( SpriteBatch spriteBatch, Vector2 start, Vector2 end, float height, Color color ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Kill() 공개 메소드

public Kill ( ) : void
리턴 void

Player() 공개 메소드

public Player ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Character character, LinkedListNode checkpoint ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
character Character
checkpoint LinkedListNode
리턴 System

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

ResetValues() 공개 메소드

public ResetValues ( ) : void
리턴 void

Update() 공개 메소드

This method is pretty much like an update() function for the player body since it is called every tick
public Update ( float deltaTime ) : void
deltaTime float
리턴 void

프로퍼티 상세

AbilityOneTime 공개적으로 프로퍼티

public float AbilityOneTime
리턴 float

Alive 공개적으로 프로퍼티

public bool Alive
리턴 bool

AttackTime 공개적으로 프로퍼티

public float AttackTime
리턴 float

Checkpoints 공개적으로 프로퍼티

public int Checkpoints
리턴 int

CloneTime 공개적으로 프로퍼티

public float CloneTime
리턴 float

ClonedPlayer 공개적으로 프로퍼티

public AI ClonedPlayer
리턴 AI

CurrentCharacter 공개적으로 프로퍼티

public Character CurrentCharacter
리턴 Character

CurrentState 공개적으로 프로퍼티

public State CurrentState
리턴 State

Flip 공개적으로 프로퍼티

public SpriteEffects Flip
리턴 SpriteEffects

GrappleRight 공개적으로 프로퍼티

public bool GrappleRight
리턴 bool

GrappleTarget 공개적으로 프로퍼티

public Vector2 GrappleTarget
리턴 Vector2

HookedLocation 공개적으로 프로퍼티

public Vector2 HookedLocation
리턴 Vector2

HookedPlayer 공개적으로 프로퍼티

public Player,Source.Collisions HookedPlayer
리턴 Player

JetpackEnabled 공개적으로 프로퍼티

public bool JetpackEnabled
리턴 bool

JetpackTime 공개적으로 프로퍼티

public float JetpackTime
리턴 float

JumpSpeed 공개적으로 프로퍼티

public float JumpSpeed
리턴 float

JumpTime 공개적으로 프로퍼티

public float JumpTime
리턴 float

JumpsLeft 공개적으로 프로퍼티

public int JumpsLeft
리턴 int

MaxVelocity 공개적으로 프로퍼티

public float MaxVelocity
리턴 float

Node 공개적으로 프로퍼티

public LinkedListNode Node
리턴 LinkedListNode

Place 공개적으로 프로퍼티

public int Place
리턴 int

PlatformTime 공개적으로 프로퍼티

public float PlatformTime
리턴 float

PrevJump 공개적으로 프로퍼티

public bool PrevJump
리턴 bool

PrevStates 공개적으로 프로퍼티

public List> PrevStates
리턴 Vector2>>.List

Progress 공개적으로 프로퍼티

public float Progress
리턴 float

Projectiles 공개적으로 프로퍼티

public List Projectiles
리턴 List

Score 공개적으로 프로퍼티

public int Score
리턴 int

ShowSmear 공개적으로 프로퍼티

public bool ShowSmear
리턴 bool

SlideEmitter 공개적으로 프로퍼티

public ParticleEmitter,Source.Graphics SlideEmitter
리턴 Source.Graphics.ParticleEmitter

SpawnedPlatform 공개적으로 프로퍼티

public Platform SpawnedPlatform
리턴 Platform

Sprite 공개적으로 프로퍼티

public AnimatedSprite,Source.Graphics Sprite
리턴 Source.Graphics.AnimatedSprite

StunTime 공개적으로 프로퍼티

public float StunTime
리턴 float

TargetRadius 공개적으로 프로퍼티

public float TargetRadius
리턴 float

TargetVelocity 공개적으로 프로퍼티

public Direction TargetVelocity
리턴 Direction

WallJump 공개적으로 프로퍼티

public Direction WallJump
리턴 Direction