C# 클래스 SmashBros.Models.CharacterModel

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

공개 프로퍼티들

프로퍼티 타입 설명
JumpStartVelocity int
_faceRight bool
acceleration int
attackMode bool
damagePoints int
inAir bool
invounerableTimeLeft float
jumpsLeft int
maxSpeed int
onSoftBox bool
playerIndex int
position Vector2
powerUp PowerUp
resetTimeLeft float
stats CharacterStats
view SmashBros.Views.CharacterView
weight int

공개 메소드들

메소드 설명
CharacterModel ( GamepadController pad, Vector2 startPos, int countDown, CharacterStats stats ) : System
setState ( CharacterState newState, MoveStats move = null ) : void

메소드 상세

CharacterModel() 공개 메소드

public CharacterModel ( GamepadController pad, Vector2 startPos, int countDown, CharacterStats stats ) : System
pad SmashBros.Controllers.GamepadController
startPos Vector2
countDown int
stats CharacterStats
리턴 System

setState() 공개 메소드

public setState ( CharacterState newState, MoveStats move = null ) : void
newState CharacterState
move MoveStats
리턴 void

프로퍼티 상세

JumpStartVelocity 공개적으로 프로퍼티

The CURRENT (powerup concidered) velocity of the characters jump.
public int JumpStartVelocity
리턴 int

_faceRight 공개적으로 프로퍼티

The character is facing right direction?
public bool _faceRight
리턴 bool

acceleration 공개적으로 프로퍼티

CURRENT (powerup concidered) Acceleration!
public int acceleration
리턴 int

attackMode 공개적으로 프로퍼티

Whether the character is in an attackCharacterState.
public bool attackMode
리턴 bool

damagePoints 공개적으로 프로퍼티

An int that describes how much damage the player has taken in the current game/characterlife.
public int damagePoints
리턴 int

inAir 공개적으로 프로퍼티

The character is in air or on ground?
public bool inAir
리턴 bool

invounerableTimeLeft 공개적으로 프로퍼티

Time left of invounerability.
public float invounerableTimeLeft
리턴 float

jumpsLeft 공개적으로 프로퍼티

Number of jumps left. One of them is supermove, and once super is used, jumpsleft = 0.
public int jumpsLeft
리턴 int

maxSpeed 공개적으로 프로퍼티

The CURRENT (powerup concidered) maximum magnitude of speed in x-direction this character can have.
public int maxSpeed
리턴 int

onSoftBox 공개적으로 프로퍼티

Whether the character is standing on a box which can be gone through.
public bool onSoftBox
리턴 bool

playerIndex 공개적으로 프로퍼티

Wich player this is range 0-3
public int playerIndex
리턴 int

position 공개적으로 프로퍼티

The current position of character sprite.
public Vector2 position
리턴 Vector2

powerUp 공개적으로 프로퍼티

A powerUp the player currently is in posetion of.
public PowerUp,SmashBros.Models powerUp
리턴 PowerUp

resetTimeLeft 공개적으로 프로퍼티

Time left to when the character reappears on the map.
public float resetTimeLeft
리턴 float

stats 공개적으로 프로퍼티

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

view 공개적으로 프로퍼티

Currently chosen character of this player.
public CharacterView,SmashBros.Views view
리턴 SmashBros.Views.CharacterView

weight 공개적으로 프로퍼티

The CURRENT (powerup concidered) weight of the character. Determines, along with players damagePoints, how far the character is pushed by some force.
public int weight
리턴 int