Configuration
Table of Contents
- $battleZone : mixed
- Zone of battle, use in death messages, but can use for other purposes
- $createNews : mixed
- Indicating if battle create a news when player lost
- $die : mixed
- Indicating if die when lost in battle
- $flawless : mixed
- Indicating if flawless for perfect battle is allowed or not
- $gainExp : mixed
- Indicating if gains exp when win in battle
- $gainFavor : mixed
- Indicating if gains favor when win in battle
- $gainGem : mixed
- Indicating if gain gem when win in battle
- $gainGold : mixed
- Indicating if gain gold when win in battle
- $lostExp : mixed
- Indicating if lost exp when lost in battle
- $lostGold : mixed
- Indicating if lost gold when lost in battle
- $process : mixed
- Indicating if process victory or defeat battle. False when you want simulate a battle.
- allowCreateNews() : bool
- Get if is allow create news on battle lost.
- allowFlawless() : bool
- Get if is allow flawlees for perfect battle.
- allowProccessBatteResults() : bool
- Get if need process battle on victory/defeat.
- canDie() : bool
- Get if player can die when lost in battle.
- canGainExp() : bool
- Get if player can gain exp when win in battle
- canGainFavor() : bool
- Get if player can gain favor when win in battle.
- canGainGem() : bool
- Get if player can gain gem when win in battle.
- canGainGold() : bool
- Get if player can gain gold when win in battle.
- canLostExp() : bool
- Get if player can lost exp when lost in battle.
- canLostGold() : bool
- Get if player can lost gold when lost in battle.
- disableCreateNews() : self
- Disable create news on battle lost.
- disableDie() : self
- Disable player die when lost in battle.
- disableFlawless() : self
- Deny flawlees for perfect battle.
- disableGainExp() : self
- Disable player gain exp when win in battle.
- disableGainFavor() : self
- Disable player gain favor when win in battle.
- disableGainGem() : self
- Disable gain gem when win in battle.
- disableGainGold() : self
- Disable gain gold when win in battle.
- disableLostExp() : self
- Disable player lost exp when lost in battle.
- disableLostGold() : self
- Disable lost gold when lost in battle.
- disableProccessBatteResults() : self
- Disable process victory or defeat battle.
- enableCreateNews() : self
- Enable create news on battle lost.
- enableDie() : self
- Enable player die when lost in battle.
- enableFlawless() : self
- Allow flawlees for perfect battle.
- enableGainExp() : self
- Enable player gain exp when win in battle.
- enableGainFavor() : self
- Enable player gain favor when win in battle.
- enableGainGem() : self
- Enable gain gem when win in battle.
- enableGainGold() : self
- Enable gain gold when win in battle.
- enableLostExp() : self
- Enable player lost exp when lost in battle.
- enableLostGold() : self
- Enable lost gold when lost in battle.
- enableProccessBatteResults() : self
- Enable process victory or defeat battle.
- getBattleZone() : string
- Get the value of battleZone.
- setBattleZone() : self
- Set value where the battle takes place.
Properties
$battleZone
Zone of battle, use in death messages, but can use for other purposes
protected
mixed
$battleZone
= 'forest'
$createNews
Indicating if battle create a news when player lost
protected
mixed
$createNews
= true
$die
Indicating if die when lost in battle
protected
mixed
$die
= true
$flawless
Indicating if flawless for perfect battle is allowed or not
protected
mixed
$flawless
= true
$gainExp
Indicating if gains exp when win in battle
protected
mixed
$gainExp
= false
$gainFavor
Indicating if gains favor when win in battle
protected
mixed
$gainFavor
= false
$gainGem
Indicating if gain gem when win in battle
protected
mixed
$gainGem
$gainGold
Indicating if gain gold when win in battle
protected
mixed
$gainGold
$lostExp
Indicating if lost exp when lost in battle
protected
mixed
$lostExp
= true
$lostGold
Indicating if lost gold when lost in battle
protected
mixed
$lostGold
= true
$process
Indicating if process victory or defeat battle. False when you want simulate a battle.
protected
mixed
$process
= true
Methods
allowCreateNews()
Get if is allow create news on battle lost.
public
allowCreateNews() : bool
Return values
bool —allowFlawless()
Get if is allow flawlees for perfect battle.
public
allowFlawless() : bool
Return values
bool —allowProccessBatteResults()
Get if need process battle on victory/defeat.
public
allowProccessBatteResults() : bool
Return values
bool —canDie()
Get if player can die when lost in battle.
public
canDie() : bool
Return values
bool —canGainExp()
Get if player can gain exp when win in battle
public
canGainExp() : bool
Return values
bool —canGainFavor()
Get if player can gain favor when win in battle.
public
canGainFavor() : bool
Return values
bool —canGainGem()
Get if player can gain gem when win in battle.
public
canGainGem() : bool
Return values
bool —canGainGold()
Get if player can gain gold when win in battle.
public
canGainGold() : bool
Return values
bool —canLostExp()
Get if player can lost exp when lost in battle.
public
canLostExp() : bool
Return values
bool —canLostGold()
Get if player can lost gold when lost in battle.
public
canLostGold() : bool
Return values
bool —disableCreateNews()
Disable create news on battle lost.
public
disableCreateNews() : self
Return values
self —disableDie()
Disable player die when lost in battle.
public
disableDie() : self
Return values
self —disableFlawless()
Deny flawlees for perfect battle.
public
disableFlawless() : self
Return values
self —disableGainExp()
Disable player gain exp when win in battle.
public
disableGainExp() : self
Return values
self —disableGainFavor()
Disable player gain favor when win in battle.
public
disableGainFavor() : self
.
Return values
self —disableGainGem()
Disable gain gem when win in battle.
public
disableGainGem() : self
Return values
self —disableGainGold()
Disable gain gold when win in battle.
public
disableGainGold() : self
Return values
self —disableLostExp()
Disable player lost exp when lost in battle.
public
disableLostExp() : self
Return values
self —disableLostGold()
Disable lost gold when lost in battle.
public
disableLostGold() : self
Return values
self —disableProccessBatteResults()
Disable process victory or defeat battle.
public
disableProccessBatteResults() : self
When you want simulate a battle.
Return values
self —enableCreateNews()
Enable create news on battle lost.
public
enableCreateNews() : self
Return values
self —enableDie()
Enable player die when lost in battle.
public
enableDie() : self
Return values
self —enableFlawless()
Allow flawlees for perfect battle.
public
enableFlawless() : self
Return values
self —enableGainExp()
Enable player gain exp when win in battle.
public
enableGainExp() : self
Return values
self —enableGainFavor()
Enable player gain favor when win in battle.
public
enableGainFavor() : self
.
Return values
self —enableGainGem()
Enable gain gem when win in battle.
public
enableGainGem() : self
Return values
self —enableGainGold()
Enable gain gold when win in battle.
public
enableGainGold() : self
Return values
self —enableLostExp()
Enable player lost exp when lost in battle.
public
enableLostExp() : self
Return values
self —enableLostGold()
Enable lost gold when lost in battle.
public
enableLostGold() : self
Return values
self —enableProccessBatteResults()
Enable process victory or defeat battle.
public
enableProccessBatteResults() : self
Disabled when you want simulate a battle.
Return values
self —getBattleZone()
Get the value of battleZone.
public
getBattleZone() : string
Return values
string —setBattleZone()
Set value where the battle takes place.
public
setBattleZone(string $battleZone) : self
Game recognizes the forest and the graveyard, but can add more as you need
Parameters
- $battleZone : string