Exemplo n.º 1
0
/***************************************************************************
 *	run_olc_editor
 *
 *	send the descriptor to the proper editor interpreter
 *	based on their current edit state
 ***************************************************************************/
bool run_olc_editor(struct descriptor_data *d)
{
    bool success = true;

    switch (d->editor) {
      case ED_AREA:
          aedit(d->character, d->incomm);
          break;
      case ED_ROOM:
          redit(d->character, d->incomm);
          break;
      case ED_OBJECT:
          oedit(d->character, d->incomm);
          break;
      case ED_MOBILE:
          medit(d->character, d->incomm);
          break;
      case ED_MPCODE:
          mpedit(d->character, d->incomm);
          break;
      case ED_HELP:
          hedit(d->character, d->incomm);
          break;
      case ED_SKILL:
          skedit(d->character, d->incomm);
          break;
      case ED_GROUP:
          gredit(d->character, d->incomm);
          break;
      default:
          success = false;
    }

    return success;
}
Exemplo n.º 2
0
/* Executed from comm.c.  Minimizes compiling when changes are made. */
bool run_olc_editor (DESCRIPTOR_DATA * d)
{
    switch (d->editor)
    {
        case ED_AREA:
            aedit (d->character, d->incomm);
            break;
        case ED_ROOM:
            redit (d->character, d->incomm);
            break;
        case ED_OBJECT:
            oedit (d->character, d->incomm);
            break;
        case ED_MOBILE:
            medit (d->character, d->incomm);
            break;
        case ED_MPCODE:
            mpedit (d->character, d->incomm);
            break;
        case ED_HELP:
            hedit (d->character, d->incomm);
            break;
        default:
            return FALSE;
    }
    return TRUE;
}
Exemplo n.º 3
0
Arquivo: olc.c Projeto: picpen/balrog
/* Executed from comm.c.  Minimizes compiling when changes are made. */
bool    run_olc_editor (DESCRIPTOR_DATA * d, char * incomm)
{
	switch (d->editor)
	{
		case ED_AREA:
			aedit (d->character, incomm);
			break;
		case ED_ROOM:
			redit (d->character, incomm);
			break;
		case ED_OBJECT:
			oedit (d->character, incomm);
			break;
		case ED_MOBILE:
			medit (d->character, incomm);
			break;
		case ED_PROG:
			pedit (d->character, incomm);
			break;
		case ED_RACE:
			raedit (d->character, incomm);
			break;
		case ED_SOCIAL:
			sedit (d->character, incomm);
			break;
		case ED_SKILL:
			skedit (d->character, incomm);
			break;
		case ED_CMD:
			cmdedit (d->character, incomm);
			break;
		case ED_GROUP:
			gedit (d->character, incomm);
			break;
		case ED_HELP:
			hedit (d->character, incomm);
			break;
		default:
			return FALSE;
	}
	return TRUE;
}
Exemplo n.º 4
0
void
super_interpret (CHAR_DATA * ch, char *argy)
{
  DESCRIPTOR_DATA *d = ch->desc;
  if (!d)
    return;
  switch (d->connected)
    {
    case CON_PLAYING:
      interpret (ch, argy);
      break;
    case CON_AEDITOR:
      aedit (ch, argy);
      break;
    case CON_SEDITOR:
      sedit (ch, argy);
      break;
    case CON_PEDITOR:
      pedit (ch, argy);
      break;
    case CON_REDITOR:		/*For Builders */
      redit (ch, argy);
      break;
    case CON_OEDITOR:
      oedit (ch, argy);
      break;
    case CON_MEDITOR:
      medit (ch, argy);
      break;
    case CON_CEDITOR:
      cedit (ch, argy);
      break;
    default:
      break;
    }
  return;
}