C# Class PantheonPrototype.NPCCharacter

Inheritance: CharacterEntity
Show file Open project: Bacon41/PantheonPrototype

Protected Properties

Property Type Description
changeDirection System.TimeSpan
comfortZone Microsoft.Xna.Framework.Rectangle
isRoaming bool
speed int

Public Methods

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

Private Methods

Method Description
switchDirection ( Pantheon gameReference ) : void

Randomly switch directions.

Method Details

Interact() public method

public Interact ( ) : void
return void

NPCCharacter() public method

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

Update() public method

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
return void

Property Details

changeDirection protected property

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

comfortZone protected property

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

isRoaming protected property

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

speed protected property

This is the speed in which the character will walk.
protected int speed
return int