示例#1
0
 public Water(IPosition elementPosition, IList <IGameObjectElement> elements)
 {
     this.IsHit           = false;
     this.ElementPosition = elementPosition;
     this.Elements        = elements;
     this.type            = GameObjectElementType.Water;
 }
 public IGameObjectElement CreateGameObjectElement(IPosition pos, GameObjectElementType type)
 {
     if (pos == null)
     {
         throw new NullReferenceException();
     }
     return(new GameObjectElement(pos, type));
 }
示例#3
0
 public GameObjectElement(IPosition position, GameObjectElementType type)
 {
     this.Position = position;
     this.Type     = type;
 }