예제 #1
0
 public Location()
 {
     InitializeComponent();
     LocX.setNeighbour(LocZ, LocY);
     LocY.setNeighbour(LocX, LocZ);
     LocZ.setNeighbour(LocY, LocX);
 }
        public PlayerCommands(CommandsGeneratorTemplate cmdGenerator)
        {
            InitializeComponent();

            LocX_sp.setNeighbour(null, LocY_sp);
            LocY_sp.setNeighbour(LocX_sp, LocZ_sp);
            LocZ_sp.setNeighbour(LocY_sp, null);

            LocX.setNeighbour(null, LocY);
            LocY.setNeighbour(LocX, LocZ);
            LocZ.setNeighbour(LocY, null);
            CmdGenerator = cmdGenerator;
        }