C# Class PantheonPrototype.NPCCharacter

Inheritance: CharacterEntity
Afficher le fichier Open project: Bacon41/PantheonPrototype

Protected Properties

Свойство Type Description
changeDirection System.TimeSpan
comfortZone Microsoft.Xna.Framework.Rectangle
isRoaming bool
speed int

Méthodes publiques

Méthode Description
Interact ( ) : void
NPCCharacter ( Vector2 location, Rectangle drawBox, Rectangle boundingBox ) : System
Update ( GameTime gameTime, Pantheon gameReference ) : void

Private Methods

Méthode Description
switchDirection ( Pantheon gameReference ) : void

Randomly switch directions.

Method Details

Interact() public méthode

public Interact ( ) : void
Résultat void

NPCCharacter() public méthode

public NPCCharacter ( Vector2 location, Rectangle drawBox, Rectangle boundingBox ) : System
location Vector2
drawBox Microsoft.Xna.Framework.Rectangle
boundingBox Microsoft.Xna.Framework.Rectangle
Résultat System

Update() public méthode

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
Résultat void

Property Details

changeDirection protected_oe property

The time until the NPC needs to change directions for their random movement.
protected TimeSpan,System changeDirection
Résultat System.TimeSpan

comfortZone protected_oe property

This is the area where interactions will occur (either conversations or attacking).
protected Rectangle,Microsoft.Xna.Framework comfortZone
Résultat Microsoft.Xna.Framework.Rectangle

isRoaming protected_oe property

This tells the NPC if it is randomly moving around or not.
protected bool isRoaming
Résultat bool

speed protected_oe property

This is the speed in which the character will walk.
protected int speed
Résultat int