Also refactored the IDamageable interface to make more sense; now the attacker has to be a character instead of an IDamageable and damageable classes don't need to have an AiTarget. Closes #69
25 lines
427 B
C#
25 lines
427 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
interface IDamageable
|
|
{
|
|
Vector2 SimPosition
|
|
{
|
|
get;
|
|
}
|
|
|
|
Vector2 WorldPosition
|
|
{
|
|
get;
|
|
}
|
|
|
|
float Health
|
|
{
|
|
get;
|
|
}
|
|
|
|
AttackResult AddDamage(Character attacker, Vector2 worldPosition, Attack attack, float deltaTime, bool playSound=true);
|
|
}
|
|
}
|