public static void FreeSpot(CharacterUi charAvater, CharacterTypes.Type type) { if (type == CharacterTypes.Type.Ally) { FreeSpotForList(charAvater, AvailableAllySpots); } else { FreeSpotForList(charAvater, AvailableAllySpots); } }
public Character(CharacterStats characterStats, CharacterTypes.Type type, BattleEngine battleEngine) { CharacterStats = characterStats; CharacterStats.CharacterParent = this; Status = CharacterTypes.Status.Alive; Type = type; BattleEngine = battleEngine; CharacterUiControl = AvatarSpotsManager.GetSpot(Type); CharacterSetup(); CharacterUiControl.AssignCharactersToUi(this); }
public static CharacterUi GetSpot(CharacterTypes.Type type) { return(SearchForFreeSpotInList(type == CharacterTypes.Type.Ally ? AvailableAllySpots : AvailableEnemySpots)); }