-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace HackathonA | ||
{ | ||
public class BattleData | ||
{ | ||
//playerのHP | ||
public readonly int playerHp; | ||
|
||
//敵のHP | ||
public readonly int enemyHp; | ||
|
||
//playerの行動(0:物理攻撃、1:魔法攻撃、2:回復、3:物理カウンター、4:魔法カウンター) | ||
public readonly int playerAction; | ||
|
||
//敵の行動(0:物理攻撃、1:魔法攻撃、2:回復、3:物理カウンター、4:魔法カウンター) | ||
public readonly int enemyAction; | ||
|
||
//playerのダメージ | ||
public readonly int playerDamageValue; | ||
|
||
//敵のダメージ | ||
public readonly int enemyDamageValue; | ||
|
||
//終了判定(TrueがPlayer先行、Falseが敵先行) | ||
public readonly bool actionJudge; | ||
|
||
public BattleData(int _playerHp,int _enemyHp, int _playerAction, int _enemyAction, int _playerDamageValue, int _enemyDamageValue, bool _actionJudge) | ||
{ | ||
this.playerHp = _playerHp; | ||
this.enemyHp = _enemyHp; | ||
this.playerAction = _playerAction; | ||
this.enemyAction = _enemyAction; | ||
this.playerDamageValue = _playerDamageValue; | ||
this.enemyDamageValue = _enemyDamageValue; | ||
this.actionJudge = _actionJudge; | ||
|
||
} | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.