Refactor Player class to use components, also use components in Enemy class types and fiddle with boss structure
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Godot;
|
||||
using System.Collections.Immutable;
|
||||
using Zennysoft.Game.Implementation.Components;
|
||||
using Zennysoft.Game.Ma;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter.Entity
|
||||
@@ -25,5 +26,15 @@ namespace Zennysoft.Ma.Adapter.Entity
|
||||
public void LookAtTarget(Vector3 target);
|
||||
|
||||
public IDungeonRoom GetCurrentRoom(ImmutableList<IDungeonRoom> dungeonRooms);
|
||||
|
||||
public AttackComponent AttackComponent { get; }
|
||||
|
||||
public DefenseComponent DefenseComponent { get; }
|
||||
|
||||
public int InitialHP { get; }
|
||||
|
||||
public int InitialAttack { get; }
|
||||
|
||||
public int InitialDefense { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user