comparison api/Objects/Race.cs @ 55:9080366031c0

Re #9 - Refactor for small methods * Replace use of obsolete constructors with small constructors and property setting
author IBBoard <dev@ibboard.co.uk>
date Sun, 05 Apr 2009 19:21:51 +0000
parents 3a90f70dac73
children 3ea0ab04352b
comparison
equal deleted inserted replaced
54:3a90f70dac73 55:9080366031c0
228 } 228 }
229 229
230 public List<Ability> GetAbilityList() 230 public List<Ability> GetAbilityList()
231 { 231 {
232 List<Ability> items = new List<Ability>(); 232 List<Ability> items = new List<Ability>();
233 233 items.AddRange(abilities.Values);
234 foreach (Ability ability in abilities.Values)
235 {
236 items.Add(ability);
237 }
238
239 return items; 234 return items;
240 } 235 }
241 236
242 public void AddAbility(Ability newAbility) 237 public void AddAbility(Ability newAbility)
243 { 238 {