Skip to content

Commit

Permalink
Merge branch 'main' into #1-戦闘シーン
Browse files Browse the repository at this point in the history
  • Loading branch information
aiueo-1234 committed Jun 12, 2023
2 parents 3a80ea0 + 8a4ebc7 commit d5c94aa
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Assets/Scripts/BattleData.cs
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;

}
}
}

11 changes: 11 additions & 0 deletions Assets/Scripts/BattleData.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5c94aa

Please sign in to comment.