C# Класс CastleEscape.ScriptableMap

A map that has an associated script. Author: Dennis Honeyman
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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