C# Класс MyGame.Unit

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

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

Свойство Тип Описание
alive bool
baseWorld System.Matrix
position System.Vector3
rotation System.Vector3
scale System.Vector3

Защищенные свойства (Protected)

Свойство Тип Описание
boundingBox BoundingBox
boundingSphere BoundingSphere
events List
myGame MyGame

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

Метод Описание
Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
addEvent ( MyGame.Event ev ) : void

Add event to the event queue

collideWith ( Unit otherUnit ) : bool
update ( GameTime gameTime ) : void

Allows the unit to update itself.

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

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

public Unit ( MyGame game, System.Vector3 position, System.Vector3 rotation, System.Vector3 scale ) : System
game MyGame
position System.Vector3
rotation System.Vector3
scale System.Vector3
Результат System

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

Add event to the event queue
public addEvent ( MyGame.Event ev ) : void
ev MyGame.Event Event to be added
Результат void

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

public collideWith ( Unit otherUnit ) : bool
otherUnit Unit
Результат bool

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

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

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

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

public bool alive
Результат bool

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

public Matrix,System baseWorld
Результат System.Matrix

boundingBox защищенное свойство

protected BoundingBox boundingBox
Результат BoundingBox

boundingSphere защищенное свойство

protected BoundingSphere boundingSphere
Результат BoundingSphere

events защищенное свойство

protected List events
Результат List

myGame защищенное свойство

protected MyGame myGame
Результат MyGame

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

public Vector3,System position
Результат System.Vector3

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

public Vector3,System rotation
Результат System.Vector3

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

public Vector3,System scale
Результат System.Vector3