Example #1
0
 public TUfo(int x, int y, char sign)
 {
     Sign      = sign;
     XPos      = x;
     YPos      = y;
     Rnd       = new Random(4561);
     Position  = new TPosition(XPos, YPos);
     list      = new List <int>();
     tarnKappe = false;
 }
            public Shape <TNode, TPosition, TKey> GetShape(TPosition position)
            {
                var shape = default(Shape <TNode, TPosition, TKey>);

                if (positionShapeLookup.TryGetValue(position, out shape))
                {
                    return(shape);
                }
                Debug.Log("Shape not found. Returning null");
                return(null);
            }
            public TNode AddNodeToShape(Shape <TNode, TPosition, TKey> shape, INodeFactory <TNode, TPosition, TKey> nodeFactory, TPosition position)
            {
                var node = nodeFactory.Create(shape.Area, position);

                shape.AddNode(node);
                positionShapeLookup[position] = shape;
                return(node);
            }
Example #4
0
 public void Select (Guid contentId, TPosition contentPosition)
 {
   Id = contentId;
   Position.CopyFrom (contentPosition);
 }
Example #5
0
		protected void highlightPosition(TDrawBoardEvent e, TPosition pos) {
			if (pos != null)
				e.gfx.FillRectangle(new SolidBrush(Color.Red), pos.x * 16, pos.y * 16, 16, 16);
		}
Example #6
0
 public MyHead(TState state, GssNode <TStackSymbol, TGssData> stackTop, TPosition position) : base(state, stackTop, position)
 {
 }