Exemplo n.º 1
0
        unsafe public bool **getMapSuggestion()
        {
            int type = 0;

            if (unitSelect is DwarfUnit)
            {
                type = 1;
            }
            else if (unitSelect is ElfUnit)
            {
                type = 2;
            }
            else if (unitSelect is OrcUnit)
            {
                type = 3;
            }
            else if (unitSelect is HumanUnit)
            {
                type = 4;
            }

            int[][]     mapElement = buildMapElement(this.game.getMap().getSize());
            WrapperAlgo wp         = new WrapperAlgo();

            bool **mapMove = wp.possible(this.game.getMap().getSize(), this.Xselect, this.Yselect, type, mapElement, unitSelect.getMovePts());

            return(mapMove);
        }
Exemplo n.º 2
0
 public abstract unsafe void EdgeFlagPointerList([Flow(FlowDirection.In)] int stride, [Count(Computed = "stride"), Flow(FlowDirection.In)] bool **pointer, [Flow(FlowDirection.In)] int ptrstride);