Пример #1
0
        public Immobile(ActorInitializer init, ImmobileInfo info)
        {
            this.location = init.Get<LocationInit, CPos>();

            if (info.OccupiesSpace)
                occupied = new [] { Pair.New(TopLeft, SubCell.FullCell) };
            else
                occupied = new Pair<CPos, SubCell>[0];
        }
Пример #2
0
		public Immobile(ActorInitializer init, ImmobileInfo info)
		{
			location = init.Get<LocationInit, CPos>();
			position = init.world.Map.CenterOfCell(location);

			if (info.OccupiesSpace)
				occupied = new [] { Pair.New(TopLeft, SubCell.FullCell) };
			else
				occupied = new Pair<CPos, SubCell>[0];
		}
Пример #3
0
        public Immobile(ActorInitializer init, ImmobileInfo info)
        {
            this.location = init.Get <LocationInit, CPos>();

            if (info.OccupiesSpace)
            {
                occupied = new [] { Pair.New(TopLeft, SubCell.FullCell) }
            }
            ;
            else
            {
                occupied = new Pair <CPos, SubCell> [0];
            }
        }