import 'package:flutter/material.dart';
import '../enums.dart';

enum DamageTarget { player, enemy }

class DamageEvent {
  final int damage;
  final DamageTarget target;
  final DamageType type;

  DamageEvent({
    required this.damage,
    required this.target,
    this.type = DamageType.normal,
  });

  Color get color {
    switch (type) {
      case DamageType.normal:
        return Colors.grey;
      case DamageType.bleed:
        return Colors.red;
      case DamageType.vulnerable:
        return Colors.orange;
    }
  }
}
