/WorldView/Structures/Sign.cs
C# | 101 lines | 91 code | 10 blank | 0 comment | 0 complexity | b47429a432ab32adf8705b9f61719d78 MD5 | raw file
1using System; 2using System.Drawing; 3 4namespace MoreTerra.Structures 5{ 6 public enum SignType 7 { 8 Sign = 0, 9 Tombstone 10 } 11 12 public class Sign 13 { 14 private Int32 signId; 15 private Boolean activeSign; 16 private String signText; 17 private Point signPosition; 18 private SignType signType; 19 20 public Sign() 21 { 22 signId = -1; 23 activeSign = false; 24 signText = String.Empty; 25 signPosition = new Point(0, 0); 26 signType = SignType.Sign; 27 } 28 29 public Sign(Int32 id, Boolean active, String text, Point pos) 30 { 31 signId = id; 32 activeSign = active; 33 signText = text; 34 signPosition = pos; 35 signType = SignType.Sign; 36 } 37 38 #region GetSet Functions 39 public Int32 Id 40 { 41 get 42 { 43 return this.signId; 44 } 45 set 46 { 47 this.signId = value; 48 } 49 } 50 51 public Boolean Active 52 { 53 get 54 { 55 return this.activeSign; 56 } 57 set 58 { 59 this.activeSign = value; 60 } 61 } 62 63 public String Text 64 { 65 get 66 { 67 return this.signText; 68 } 69 set 70 { 71 this.signText = value; 72 } 73 } 74 75 public Point Position 76 { 77 get 78 { 79 return this.signPosition; 80 } 81 set 82 { 83 this.signPosition = value; 84 } 85 } 86 87 public SignType Type 88 { 89 get 90 { 91 return this.signType; 92 } 93 set 94 { 95 this.signType = value; 96 } 97 } 98 #endregion 99 100 } 101}