C# Класс SmashBros.Models.CharacterModel

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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