diff --git a/Assets/Scripts/BattleData.cs b/Assets/Scripts/BattleData.cs new file mode 100644 index 0000000..5b08de3 --- /dev/null +++ b/Assets/Scripts/BattleData.cs @@ -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; + + } + } +} + diff --git a/Assets/Scripts/BattleData.cs.meta b/Assets/Scripts/BattleData.cs.meta new file mode 100644 index 0000000..ab51211 --- /dev/null +++ b/Assets/Scripts/BattleData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dc9d8dc643628d44aaa8adacd1a955ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: