C# 클래스 PantheonPrototype.NPCCharacter

상속: CharacterEntity
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype

보호된 프로퍼티들

프로퍼티 타입 설명
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