Beispiel #1
0
        public bool AddNewBoat(string _boatName, BoatType _type)
        {
            BoatStats _newBoatStats = new BoatStats(_type);

            _boatName += (" " + TroopUtility.IntToRomanNumeral(AddNameToDatabase(_boatName)));
            _newBoatStats.boatName = _boatName;
            boats.Add(_newBoatStats);
            return(true);
        }
Beispiel #2
0
 public bool AddNewMember(string _memberName, TroopType _type)
 {
     if (TotalCapacity > TotalMembers)
     {
         TroopStats _newMemberStats = new TroopStats(_type);
         _memberName += (" " + TroopUtility.IntToRomanNumeral(AddNameToDatabase(_memberName)));
         _newMemberStats.troopName = _memberName;
         members.Add(_newMemberStats);
         if (onPlayerPartyAdd != null)
         {
             onPlayerPartyAdd(this, _newMemberStats);
         }
         return(true);
     }
     else
     {
         Debug.LogWarning("Can's add " + _memberName + ", this party reached max capacity.");
         return(false);
     }
 }
Beispiel #3
0
 public void AddRandomBoat()
 {
     AddNewBoat(TroopUtility.GenerateRandomBoatName(), TroopUtility.GetRandomBoatType());
 }
Beispiel #4
0
 public void AddRandomTroop()
 {
     AddNewMember(TroopUtility.GenerateRandomName(), TroopUtility.GetRandomTroopType());
 }