Метод | Описание | |
---|---|---|
FileManager ( string path, string pseudo ) : System |
Constructor for creating new game
|
|
FileManager ( string path, string pseudo, string filename ) : System |
Constructor for joining a game
|
|
ReadCurrentPlayer ( ) : string | ||
ReadPlayers ( ) : string[] |
Read the both players
|
|
SwitchCurrentPlayer ( ) : void | ||
WriteBattleBoard ( int x, int y, int value ) : void |
|
|
readBoard ( string boardType, string player ) : ].int[ | ||
writeBoard ( string boardType, string player, int x, int y, int value ) : void |
Метод | Описание | |
---|---|---|
ChangeFileStatus ( bool _lock ) : void |
lock or unlock the bnav file The lock work with a copy of the original file with '.lock' at the end. - ex 'BN-V02-2016-01-02-14-20-50.bnav.lock' To unlock the original file the '.lock' file is deleted
|
|
CreateFiles ( string myPath ) : void |
Create the BNAV file for the game
|
|
JoinGame ( string path, string filename, string pseudo ) : bool |
Join a curent game
|
|
fileIsLocked ( ) : bool |
Check if the file is locked
|
|
writePseudo ( string player, string pseudo ) : void |
Write the pseudo of the player in the file
|
public FileManager ( string path, string pseudo ) : System | ||
path | string | |
pseudo | string | |
Результат | System |
public FileManager ( string path, string pseudo, string filename ) : System | ||
path | string | |
pseudo | string | |
filename | string | |
Результат | System |
public WriteBattleBoard ( int x, int y, int value ) : void | ||
x | int | |
y | int | |
value | int | |
Результат | void |
public readBoard ( string boardType, string player ) : ].int[ | ||
boardType | string | |
player | string | |
Результат | ].int[ |
public writeBoard ( string boardType, string player, int x, int y, int value ) : void | ||
boardType | string | |
player | string | |
x | int | |
y | int | |
value | int | |
Результат | void |