src/hcode/btech/p.autopilot_commands.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int auto_valid_progline (AUTO *a, int p)
void auto_jump (dbref player, void *data, char *buffer)


Function Documentation

void auto_jump ( dbref  player,
void *  data,
char *  buffer 
)

Definition at line 427 of file autopilot_core.c.

References auto_valid_progline(), DOCHECK, notify, notify_printf(), PG, Readnum, and skipws.

00428 {
00429         int p;
00430         AUTO *a = (AUTO *) data;
00431 
00432         notify(player, "jump has been temporarly disabled till I can figure out"
00433                    " how I want to change it - Dany");
00434 #if 0
00435         skipws(buffer);
00436         DOCHECK(!*buffer, "Argument expected!");
00437         DOCHECK(Readnum(p, buffer), "Invalid argument - single number expected.");
00438         /* Find out if it's valid position */
00439         DOCHECK(!auto_valid_progline(a, p),
00440                         "Invalid : Argument out of range, or argument, not command.");
00441         PG(a) = p;
00442         notify_printf(player, "Program Counter set to #%d.", p);
00443 #endif
00444 }

int auto_valid_progline ( AUTO a,
int  p 
)

Todo:
{See if we need this function and remove it if not}

Definition at line 288 of file autopilot_core.c.

References acom, ACOM::argcount, and AUTO::commands.

Referenced by auto_com_event(), and auto_jump().

00289 {
00290         int i;
00291 #if 0
00292         for(i = 0; i < a->first_free; i += (acom[a->commands[i]].argcount + 1))
00293                 if(i == p)
00294                         return 1;
00295 #endif
00296         return 0;
00297 }


Generated on Mon May 28 04:25:39 2007 for BattletechMUX by  doxygen 1.4.7