comparison API/Objects/Ability.cs @ 337:3c4a6403a88c

* Fix capitalisation so that new files are in the namespace no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 03 Apr 2011 18:50:32 +0000
parents
children
comparison
equal deleted inserted replaced
336:3631c1493c7f 337:3c4a6403a88c
1 // This file (Ability.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2008, 2009 IBBoard.
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4
5 using System;
6
7 namespace IBBoard.WarFoundry.API.Objects
8 {
9 /// <summary>
10 /// An Ability is a special rule that a UnitType has, made up of an ability name and a description.
11 /// </summary>
12 public class Ability : WarFoundryObject
13 {
14 private string description;
15
16 public Ability(String id, String name) : base(id, name)
17 {
18 }
19
20 public string Description
21 {
22 get { return description; }
23 set
24 {
25 if (value!=null)
26 {
27 description = value.Trim();
28 }
29 }
30 }
31 }
32 }