메소드 | 설명 | |
---|---|---|
ChangeMap ( string filename, Coords pos ) : void |
Method to change the "room" Loads the saved (previously visited) version of the next room if possible and the generated version if there is no saved one
|
|
ConnectRecursive ( List |
||
ConnectRooms ( List |
||
GenerateMaps ( ) : void |
Generate three levels consisting of multiple rooms each and save them to xml files
|
|
GenericDialog ( int from, int to, string message = "" ) : void |
A text displayed if the player died or talk to NPC
|
|
HandleEvent ( bool DownStream, Events eventID ) : void |
Handle events from UIElements and/or backend objects
|
|
PureLogic ( IHandleEvent parent, |
The constructor for the logic behind the game
|
|
ReassignPlayer ( ) : void | ||
Restart ( ) : void |
Method to for reseting the game to the generated version
|
|
Restore ( string name ) : void |
Restore game progress from a saved state
|
|
Save ( string name ) : void |
Save the game to a new folder
|
|
Update ( |
Method to start the update-routine of the map
|
메소드 | 설명 | |
---|---|---|
_CombatDamage ( int attacker, int defender ) : void |
Methode to evaluate the damage in a combat between two actors. Calculates the percentage damage reduction based on armor and penetration. Shows the floating combat text for the attack.
|
|
_TrapDamage ( Coords target ) : void |
methode to evaluate the damage a trap deals to an actor walking over it or stands on raising trap
|
메소드 | 설명 | |
---|---|---|
FindAvailableExits ( List |
||
_DeleteSavedRooms ( ) : void |
Method to delete old saved rooms
|
public ChangeMap ( string filename, Coords pos ) : void | ||
filename | string | The path to the .xml of the next room |
pos | Coords | The spawning position in the next room |
리턴 | void |
public ConnectRecursive ( List |
||
rooms | List |
|
id | int | |
visited | List |
|
리턴 | void |
public ConnectRooms ( List |
||
rooms | List |
|
From | int | |
exit | Direction | |
roomsPerRow | int | |
리턴 | void |
public GenericDialog ( int from, int to, string message = "" ) : void | ||
from | int | |
to | int | |
message | string | A custom message that could be displayed |
리턴 | void |
public HandleEvent ( bool DownStream, Events eventID ) : void | ||
DownStream | bool | |
eventID | Events | The ID of the event |
리턴 | void |
public PureLogic ( IHandleEvent parent, |
||
parent | IHandleEvent | |
map | The map object which will contain the rooms | |
_random | A random | |
리턴 | System |
public Restore ( string name ) : void | ||
name | string | The directory where the gamestate is stored |
리턴 | void |
public Save ( string name ) : void | ||
name | string | The directory to which the game should be saved |
리턴 | void |
public Update ( |
||
gametime | ||
리턴 | void |
protected _CombatDamage ( int attacker, int defender ) : void | ||
attacker | int | the attacking actor |
defender | int | the attacked actor |
리턴 | void |
protected _TrapDamage ( Coords target ) : void | ||
target | Coords | Coords of the actor which walked over the trap |
리턴 | void |