/// <summary>Finds object on the floor in a cell.</summary> /// <param name="rc">??</param> /// <returns>??</returns> public int Ofind(RowCol rc) { throw new NotImplementedException(); //int idx; //do //{ // idx = Fndobj(); // if (idx == -1) // return -1; //} while ((!((OCBLND[idx].P_OCROW == rc.row) && (OCBLND[idx].P_OCCOL == rc.col))) || (OCBLND[idx].P_OCOWN != 0)); //return idx; }
/// <summary>These two routines should probably be combined.</summary> /// <remarks> /// They check for a creature in the given cell /// </remarks> public int Cfind2(RowCol rc) { throw new NotImplementedException(); // int ctr = 0; //while (ctr < 32) //{ // if (CCBLND[ctr].P_CCROW == rc.row && CCBLND[ctr].P_CCCOL == rc.col) // { // if (CCBLND[ctr].P_CCUSE != 0) // return ctr; // } // ++ctr; //} //return -1; }
/// <summary>Checks if a hole/ladder is in cell.</summary> /// <remarks> /// It has to check above and below, since each vertical feature is stored only once in the VFT. /// </remarks> public byte Vfind(RowCol rc) { throw new NotImplementedException(); // int u = VFTPTR; //byte a = 0; //bool res; //res = VFINDsub(ref a, ref u, rc); //if (res == true) // return a; //res = VFINDsub(ref a, ref u, rc); //if (res == true) // return a + 2; //else // return -1; }
// Used by VFIND private bool VFINDsub(ref byte a, ref int u, RowCol rc) { throw new NotImplementedException(); // byte r; //byte c; //do //{ // a = VFTTAB[u++]; // if (a == 0xFF) // return false; // r = VFTTAB[u++]; // c = VFTTAB[u++]; //} while (!((r == rc.row) && (c == rc.col))); //return true; }
// Finds surrounding cells private void Friend(RowCol RC) { throw new NotImplementedException(); // byte r3; //byte c3; //int u = 0; //for (r3 = RC.row; r3 <= (RC.row + 2); ++r3) //{ // for (c3 = RC.col; c3 <= (RC.col + 2); ++c3) // { // if (Border((r3 - 1), (c3 - 1)) == false) // NEIBOR[u] = 0xFF; // else // NEIBOR[u] = MAZLND[Rc2idx((r3 - 1), (c3 - 1))]; // ++u; // } //} }