C# 클래스 PantheonPrototype.Level

This is the preliminary level class. The level class handles rendering the map and handling all entities that happen to populate said map. These entities will be used to build the world and create event triggering, enemies, NPCs, etc. This should be where the majority of the game logic goes, via the interaction between entities. Level content will be loaded dynamically through some sort of WAD-type file.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Camera Camera
addList Entity>.Dictionary
removeList List

보호된 프로퍼티들

프로퍼티 타입 설명
dialogueManager DialogueManager
entities Entity>.Dictionary
levelMap Map
levelNum string
levelPlaying bool
levelStart bool
nextLevel string
questCreator QuestCreator
screenRect Microsoft.Xna.Framework.Rectangle

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void

The Draw function will draw the level itself, as well as any subentities that are a part of the level. Each entity will be in charge of drawing itself, and the level will merely draw the physical level. (Tiles, Sprites, Etc)

Level ( GraphicsDevice graphicsDevice ) : System

The constructor for the Level class. Basically doesn't do anything important at this point.

Load ( string newLevel, string oldLevel, Pantheon gameReference ) : void

Loads the level from a descriptive script file on the harddrive.

Update ( GameTime gameTime, Pantheon gameReference ) : void

The Update function will run through the level and perform any necessary operations for processing the frame. This includes going through the list of active entities in the level and updating them as well.

비공개 메소드들

메소드 설명
checkEntities ( List entityNames, List entityList, Pantheon gameReference ) : void

Checks the appropriate characteristics for the given entity collision.

checkObjects ( string entityName, Entity entity, FuncWorks.XNA.XTiled.MapObject obj, Pantheon gameReference ) : void

Checks the appropriate characteristics for the given object collision.

checkTiles ( string entityName, Entity entity, FuncWorks.XNA.XTiled.TileData tile ) : void

Checks the appropriate characteristics for the given tile collision.

detectCollisions ( Pantheon gameReference ) : void

A central function for handling all collisions.

메소드 상세

Draw() 공개 메소드

The Draw function will draw the level itself, as well as any subentities that are a part of the level. Each entity will be in charge of drawing itself, and the level will merely draw the physical level. (Tiles, Sprites, Etc)
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Level() 공개 메소드

The constructor for the Level class. Basically doesn't do anything important at this point.
public Level ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
리턴 System

Load() 공개 메소드

Loads the level from a descriptive script file on the harddrive.
public Load ( string newLevel, string oldLevel, Pantheon gameReference ) : void
newLevel string
oldLevel string
gameReference Pantheon
리턴 void

Update() 공개 메소드

The Update function will run through the level and perform any necessary operations for processing the frame. This includes going through the list of active entities in the level and updating them as well.
public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
리턴 void

프로퍼티 상세

Camera 공개적으로 프로퍼티

public Camera,PantheonPrototype Camera
리턴 Camera

addList 공개적으로 프로퍼티

A list of entities to add to the level entity list.
public Dictionary addList
리턴 Entity>.Dictionary

dialogueManager 보호되어 있는 프로퍼티

protected DialogueManager,PantheonPrototype dialogueManager
리턴 DialogueManager

entities 보호되어 있는 프로퍼티

protected Dictionary entities
리턴 Entity>.Dictionary

levelMap 보호되어 있는 프로퍼티

protected Map levelMap
리턴 Map

levelNum 보호되어 있는 프로퍼티

protected string levelNum
리턴 string

levelPlaying 보호되어 있는 프로퍼티

protected bool levelPlaying
리턴 bool

levelStart 보호되어 있는 프로퍼티

protected bool levelStart
리턴 bool

nextLevel 보호되어 있는 프로퍼티

protected string nextLevel
리턴 string

questCreator 보호되어 있는 프로퍼티

protected QuestCreator,PantheonPrototype questCreator
리턴 QuestCreator

removeList 공개적으로 프로퍼티

A list of entities to remove from the level entity list.
public List removeList
리턴 List

screenRect 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework screenRect
리턴 Microsoft.Xna.Framework.Rectangle