C# 클래스 SmashBros.Controllers.CharacterController

상속: Controller
파일 보기 프로젝트 열기: Grutn/TDT4240-X2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
currentMove SmashBros.Models.MoveModel
model SmashBros.Models.CharacterModel
navigation Vector2
newXdir bool
newYdir bool
stats SmashBros.Models.CharacterStats
view SmashBros.Views.CharacterView

공개 메소드들

메소드 설명
AddPowerUp ( PowerUp powerUp ) : void
CharacterController ( ScreenManager screen, GamepadController pad, Vector2 startPos, int countDown ) : System
Deactivate ( ) : void
HitByExplotion ( int playerIndex, Vector2 pos ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
RemovePowerUp ( PowerUp powerUp ) : void
Reset ( Vector2 startPos, bool behindMap ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
Collision ( Fixture chara, Fixture obj, Contact list ) : bool
HitKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
HitKeyUp ( float downTimer, int playerIndex ) : void
NaturalState ( ) : void
Navigation ( float directionX, float directionY, int playerIndex, bool newX, bool newY ) : void
Seperation ( Fixture geom1, Fixture geom2 ) : void
ShieldKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
ShieldKeyUp ( float downTimer, int playerIndex ) : void
SuperKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
SuperKeyUp ( float downTimer, int playerIndex ) : void

메소드 상세

AddPowerUp() 공개 메소드

public AddPowerUp ( PowerUp powerUp ) : void
powerUp SmashBros.Models.PowerUp
리턴 void

CharacterController() 공개 메소드

public CharacterController ( ScreenManager screen, GamepadController pad, Vector2 startPos, int countDown ) : System
screen SmashBros.MySystem.ScreenManager
pad GamepadController
startPos Vector2
countDown int
리턴 System

Deactivate() 공개 메소드

public Deactivate ( ) : void
리턴 void

HitByExplotion() 공개 메소드

public HitByExplotion ( int playerIndex, Vector2 pos ) : void
playerIndex int
pos Vector2
리턴 void

Load() 공개 메소드

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

OnNext() 공개 메소드

public OnNext ( GameStateManager value ) : void
value GameStateManager
리턴 void

RemovePowerUp() 공개 메소드

public RemovePowerUp ( PowerUp powerUp ) : void
powerUp SmashBros.Models.PowerUp
리턴 void

Reset() 공개 메소드

public Reset ( Vector2 startPos, bool behindMap ) : void
startPos Vector2
behindMap bool
리턴 void

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

Update() 공개 메소드

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

프로퍼티 상세

currentMove 공개적으로 프로퍼티

The move.move the character is executing.
public MoveModel,SmashBros.Models currentMove
리턴 SmashBros.Models.MoveModel

model 공개적으로 프로퍼티

The charactermodel... Helloo
public CharacterModel,SmashBros.Models model
리턴 SmashBros.Models.CharacterModel

navigation 공개적으로 프로퍼티

The current X and Y navigation
public Vector2 navigation
리턴 Vector2

newXdir 공개적으로 프로퍼티

Whether the navigation has changed in Y direction with more than something.
public bool newXdir
리턴 bool

newYdir 공개적으로 프로퍼티

Whether the navigation has changed in Y direction with more than something.
public bool newYdir
리턴 bool

stats 공개적으로 프로퍼티

The stats of the chosen character. STATIC attributes!!
public CharacterStats,SmashBros.Models stats
리턴 SmashBros.Models.CharacterStats

view 공개적으로 프로퍼티

The characterview... Helloo
public CharacterView,SmashBros.Views view
리턴 SmashBros.Views.CharacterView