C# Класс MyGame.PlayerUnit

This class represent player unit which moves in a speficied direction, rotates , take damange and die when hp reaches zero
Наследование: Unit
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
health int

Открытые методы

Метод Описание
PlayerUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
decreaseHealth ( int decreasedHealth ) : void
update ( GameTime gameTime ) : void

Allows the unit to update itself.

Описание методов

PlayerUnit() публичный Метод

public PlayerUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
Результат System

decreaseHealth() публичный Метод

public decreaseHealth ( int decreasedHealth ) : void
decreasedHealth int
Результат void

update() публичный Метод

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

Описание свойств

health публичное свойство

public int health
Результат int