C# 클래스 CastleEscape.ScriptableMap

A map that has an associated script. Author: Dennis Honeyman
파일 보기 프로젝트 열기: Daminvar/CastleEscape 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
NPEs List
game Microsoft.Xna.Framework.Game
scriptLock object
tmxMap TMXMap

공개 메소드들

메소드 설명
ChangeMap ( Directions direction ) : bool

Changes the map by loading the correct map file for the specified direction.

GetNPEAt ( int x, int y ) : NPE

Returns the NPE at the specified location

GetRandomEncounter ( ) : Enemy
IsCollisionAt ( int x, int y ) : bool

Tests to see if there is a collision at the specified coordinates.

LoadMap ( string filename ) : void

Loads a map from a file.

ReloadMap ( ) : void

Reloads the current map.

ScriptableMap ( Microsoft.Xna.Framework.Game game ) : System

비공개 메소드들

메소드 설명
createItemArray ( ArrayList itemArrayList ) : Item[]
js_addNPE ( NPE newNPE ) : void
js_addRandomEncounter ( Enemy enemy ) : void
js_battle ( Player player, Enemy enemy, string song ) : void
js_dialogue ( string text ) : void
js_getFlag ( string flag ) : bool
js_newEnemy ( string textureName, string enemyName, double health, double attack, double defense, double speed, double exp, ArrayList items ) : Enemy
js_newItem ( string itemName, string description, double healthBonus, double manaBonus, double cost ) : Item
js_newNPE ( ) : NPE
js_overworldMusic ( string song ) : void
js_randomBattleMusic ( string song ) : void
js_save ( Player player ) : void
js_setBattleTexture ( string textureName ) : void
js_setEastMapfile ( string filename ) : void
js_setFlag ( string flag ) : void
js_setMapName ( string name ) : void
js_setNorthMapfile ( string filename ) : void
js_setSouthMapfile ( string filename ) : void
js_setTmxMapfile ( string filename ) : void
js_setWestMapfile ( string filename ) : void
js_store ( Player player, ArrayList itemsArrayList ) : void
js_win ( ) : void
loadMapAndScript ( string filename ) : void
parseScriptFile ( string filename ) : void

메소드 상세

ChangeMap() 공개 메소드

Changes the map by loading the correct map file for the specified direction.
public ChangeMap ( Directions direction ) : bool
direction Directions The direction to use
리턴 bool

GetNPEAt() 공개 메소드

Returns the NPE at the specified location
public GetNPEAt ( int x, int y ) : NPE
x int
y int
리턴 NPE

GetRandomEncounter() 공개 메소드

public GetRandomEncounter ( ) : Enemy
리턴 Enemy

IsCollisionAt() 공개 메소드

Tests to see if there is a collision at the specified coordinates.
public IsCollisionAt ( int x, int y ) : bool
x int
y int
리턴 bool

LoadMap() 공개 메소드

Loads a map from a file.
public LoadMap ( string filename ) : void
filename string The filename
리턴 void

ReloadMap() 공개 메소드

Reloads the current map.
public ReloadMap ( ) : void
리턴 void

ScriptableMap() 공개 메소드

public ScriptableMap ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
리턴 System

프로퍼티 상세

NPEs 보호되어 있는 프로퍼티

protected List NPEs
리턴 List

game 보호되어 있는 프로퍼티

protected Game,Microsoft.Xna.Framework game
리턴 Microsoft.Xna.Framework.Game

scriptLock 보호되어 있는 프로퍼티

protected object scriptLock
리턴 object

tmxMap 보호되어 있는 프로퍼티

protected TMXMap,CastleEscape tmxMap
리턴 TMXMap