C# Class UtilitiesScript, Spare-Change

Inheritance: MonoBehaviour
显示文件 Open project: ThatsAMorais/Spare-Change Class Usage Examples

Public Methods

Method Description
AppendBattleText ( GUIControllerScript.BattleTextEntry, newBattleText ) : void
BattleActorActed ( ) : void
BattleController ( ) : BattleControllerScript,
BattleOverTest ( bool bPlayerIsWinner ) : void
ClearDice ( ) : void
DiceController ( ) : DiceControllerScript,
DiceRolled ( GameObject die, int rollValue ) : void
DiceThrower ( ) : BattleControllerScript,
EnemyIsVictorious ( ) : void
GUIController ( ) : GUIControllerScript,
GameController ( ) : GameControllerScript,
Login ( string playerName, string password ) : void
LookAtDice ( List dice ) : void
PlayerIsAtBossFight ( BattleControllerScript.Player, player ) : bool
PlayerIsVictorious ( float exp, float change, float kills ) : void
PlayerLoggedIn ( ScoreoidInterface.ScoreoidPlayer, player ) : void
PlayerRegistered ( ) : void
Register ( string playerName, string password, string email ) : void
RequestFailed ( string error ) : void
ResetCamera ( ) : void
ScoreKeeper ( ) : ScoreoidInterface,
SelectedAction ( GameControllerScript.BattleAction, action ) : void
SelectedEnemy ( BattleControllerScript.BattleActor, actor ) : void
SpawnPts ( string text, float x, float y, Color color ) : void
StartBattle ( ) : void
ThrowDice ( DiceControllerScript.Roll, roll, bool bLookAt = true ) : void
TransitionBattleWindowsOff ( ) : void
TransitionBattleWindowsOn ( ) : void
UpdatePlayer ( string playerName, float money, float xp, int kills, int current_level, string weapon ) : void
UpdatedPlayerSuccessfully ( ) : void
getBattleEnemies ( ) : List
getBattleQueue ( ) : Queue
getBattleRoundState ( ) : BattleControllerScript.BattleRound.State
getBossByName ( int level, string bossName ) : GameControllerScript.EnemyDefinition,
getBossPerLevel ( int level ) : List
getCurrentCharacter ( ) : BattleControllerScript.Player,
getCurrentTurn ( ) : BattleControllerScript.BattleRound,
getCurrentTurnActor ( ) : BattleControllerScript.BattleActor,
getDiceBox ( ) : Transform
getDiceBoxSides ( ) : List
getEnemiesPerLevel ( int level ) : List
getEnemyByName ( int level, string enemyName ) : GameControllerScript.EnemyDefinition,
getGameState ( ) : GameControllerScript.GameState
getWeapon ( string weaponName ) : GameControllerScript.Weapon,
getWeaponTypes ( int level ) : List
setBattleRoundState ( BattleControllerScript.BattleRound, state ) : void
setCurrentCharacter ( ScoreoidInterface.ScoreoidPlayer, character ) : void
setGameState ( GameControllerScript.GameState newGameState ) : void

Method Details

AppendBattleText() public method

public AppendBattleText ( GUIControllerScript.BattleTextEntry, newBattleText ) : void
newBattleText GUIControllerScript.BattleTextEntry,
return void

BattleActorActed() public method

public BattleActorActed ( ) : void
return void

BattleController() public method

public BattleController ( ) : BattleControllerScript,
return BattleControllerScript,

BattleOverTest() public method

public BattleOverTest ( bool bPlayerIsWinner ) : void
bPlayerIsWinner bool
return void

ClearDice() public method

public ClearDice ( ) : void
return void

DiceController() public method

public DiceController ( ) : DiceControllerScript,
return DiceControllerScript,

DiceRolled() public method

public DiceRolled ( GameObject die, int rollValue ) : void
die GameObject
rollValue int
return void

DiceThrower() public method

public DiceThrower ( ) : BattleControllerScript,
return BattleControllerScript,

EnemyIsVictorious() public method

public EnemyIsVictorious ( ) : void
return void

GUIController() public method

public GUIController ( ) : GUIControllerScript,
return GUIControllerScript,

GameController() public method

public GameController ( ) : GameControllerScript,
return GameControllerScript,

Login() public method

public Login ( string playerName, string password ) : void
playerName string
password string
return void

LookAtDice() public method

public LookAtDice ( List dice ) : void
dice List
return void

PlayerIsAtBossFight() public method

public PlayerIsAtBossFight ( BattleControllerScript.Player, player ) : bool
player BattleControllerScript.Player,
return bool

PlayerIsVictorious() public method

public PlayerIsVictorious ( float exp, float change, float kills ) : void
exp float
change float
kills float
return void

PlayerLoggedIn() public method

public PlayerLoggedIn ( ScoreoidInterface.ScoreoidPlayer, player ) : void
player ScoreoidInterface.ScoreoidPlayer,
return void

PlayerRegistered() public method

public PlayerRegistered ( ) : void
return void

Register() public method

public Register ( string playerName, string password, string email ) : void
playerName string
password string
email string
return void

RequestFailed() public method

public RequestFailed ( string error ) : void
error string
return void

ResetCamera() public method

public ResetCamera ( ) : void
return void

ScoreKeeper() public method

public ScoreKeeper ( ) : ScoreoidInterface,
return ScoreoidInterface,

SelectedAction() public method

public SelectedAction ( GameControllerScript.BattleAction, action ) : void
action GameControllerScript.BattleAction,
return void

SelectedEnemy() public method

public SelectedEnemy ( BattleControllerScript.BattleActor, actor ) : void
actor BattleControllerScript.BattleActor,
return void

SpawnPts() public method

public SpawnPts ( string text, float x, float y, Color color ) : void
text string
x float
y float
color Color
return void

StartBattle() public method

public StartBattle ( ) : void
return void

ThrowDice() public method

public ThrowDice ( DiceControllerScript.Roll, roll, bool bLookAt = true ) : void
roll DiceControllerScript.Roll,
bLookAt bool
return void

TransitionBattleWindowsOff() public method

public TransitionBattleWindowsOff ( ) : void
return void

TransitionBattleWindowsOn() public method

public TransitionBattleWindowsOn ( ) : void
return void

UpdatePlayer() public method

public UpdatePlayer ( string playerName, float money, float xp, int kills, int current_level, string weapon ) : void
playerName string
money float
xp float
kills int
current_level int
weapon string
return void

UpdatedPlayerSuccessfully() public method

public UpdatedPlayerSuccessfully ( ) : void
return void

getBattleEnemies() public method

public getBattleEnemies ( ) : List
return List

getBattleQueue() public method

public getBattleQueue ( ) : Queue
return Queue

getBattleRoundState() public method

public getBattleRoundState ( ) : BattleControllerScript.BattleRound.State
return BattleControllerScript.BattleRound.State

getBossByName() public method

public getBossByName ( int level, string bossName ) : GameControllerScript.EnemyDefinition,
level int
bossName string
return GameControllerScript.EnemyDefinition,

getBossPerLevel() public method

public getBossPerLevel ( int level ) : List
level int
return List

getCurrentCharacter() public method

public getCurrentCharacter ( ) : BattleControllerScript.Player,
return BattleControllerScript.Player,

getCurrentTurn() public method

public getCurrentTurn ( ) : BattleControllerScript.BattleRound,
return BattleControllerScript.BattleRound,

getCurrentTurnActor() public method

public getCurrentTurnActor ( ) : BattleControllerScript.BattleActor,
return BattleControllerScript.BattleActor,

getDiceBox() public method

public getDiceBox ( ) : Transform
return Transform

getDiceBoxSides() public method

public getDiceBoxSides ( ) : List
return List

getEnemiesPerLevel() public method

public getEnemiesPerLevel ( int level ) : List
level int
return List

getEnemyByName() public method

public getEnemyByName ( int level, string enemyName ) : GameControllerScript.EnemyDefinition,
level int
enemyName string
return GameControllerScript.EnemyDefinition,

getGameState() public method

public getGameState ( ) : GameControllerScript.GameState
return GameControllerScript.GameState

getWeapon() public method

public getWeapon ( string weaponName ) : GameControllerScript.Weapon,
weaponName string
return GameControllerScript.Weapon,

getWeaponTypes() public method

public getWeaponTypes ( int level ) : List
level int
return List

setBattleRoundState() public method

public setBattleRoundState ( BattleControllerScript.BattleRound, state ) : void
state BattleControllerScript.BattleRound,
return void

setCurrentCharacter() public method

public setCurrentCharacter ( ScoreoidInterface.ScoreoidPlayer, character ) : void
character ScoreoidInterface.ScoreoidPlayer,
return void

setGameState() public method

public setGameState ( GameControllerScript.GameState newGameState ) : void
newGameState GameControllerScript.GameState
return void