public override string ToString() { switch (Type) { case TargetType.Actor: return(actor.ToString()); case TargetType.FrozenActor: return(frozen.ToString()); case TargetType.Terrain: return(pos.ToString()); default: case TargetType.Invalid: return("Invalid"); } }