C# Класс PantheonPrototype.NPCCharacter

Наследование: CharacterEntity
Показать файл Открыть проект

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

Свойство Тип Описание
changeDirection System.TimeSpan
comfortZone Microsoft.Xna.Framework.Rectangle
isRoaming bool
speed int

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

Метод Описание
Interact ( ) : void
NPCCharacter ( Vector2 location, Rectangle drawBox, Rectangle boundingBox ) : System
Update ( GameTime gameTime, Pantheon gameReference ) : void

Приватные методы

Метод Описание
switchDirection ( Pantheon gameReference ) : void

Randomly switch directions.

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

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

public Interact ( ) : void
Результат void

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

public NPCCharacter ( Vector2 location, Rectangle drawBox, Rectangle boundingBox ) : System
location Vector2
drawBox Microsoft.Xna.Framework.Rectangle
boundingBox Microsoft.Xna.Framework.Rectangle
Результат System

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

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
Результат void

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

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

The time until the NPC needs to change directions for their random movement.
protected TimeSpan,System changeDirection
Результат System.TimeSpan

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

This is the area where interactions will occur (either conversations or attacking).
protected Rectangle,Microsoft.Xna.Framework comfortZone
Результат Microsoft.Xna.Framework.Rectangle

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

This tells the NPC if it is randomly moving around or not.
protected bool isRoaming
Результат bool

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

This is the speed in which the character will walk.
protected int speed
Результат int