Method | Description | |
---|---|---|
GetArgument ( string line, int index ) : PolaMUD.Argument |
Retrieves the appropriate argument from the given input string, optionally retrieving an object reference based on what you're looking for (Player, Room, etc.)
|
|
GetArgument ( string line, int index, |
Retrieves tshe appropriate Argument from the given input string. Argument's reference object is automatically retrieved based on the Type and SearchLocations enumeration provided.
|
|
GetStringArgument ( string line, int index ) : PolaMUD.Argument |
Retrieves a string argument from the given input string. This argument should always be the last argument in the line, as this will retrieve the rest of the input string after all previous arguments.
|
|
Interpret ( PolaMUD.TelnetConnection conn, string line ) : void |
Thread-safe callback from each TelnetConnection, parsing input. This function is timed internally by PulseTimer().
|
Method | Description | |
---|---|---|
GetArgumentString ( string line, int index, bool takeAll ) : string |
This returns the string that composes an entire argument, including handling prefixes such as 3. or 5* This is for internal use. External calls to the parser should use GetArgument.
|
public static GetArgument ( string line, int index ) : PolaMUD.Argument | ||
line | string | The input string |
index | int | The index of the desired argument (1 is always the command itself) |
return | PolaMUD.Argument |
public static GetArgument ( string line, int index, |
||
line | string | The input string |
index | int | The index of the desired argument (1 is always the command itself) |
user | The user Mob, for retrieving references based on this Mob's state | |
reference | The Type to search for (Mob, Player, etc.) | |
searchLocation | int | A SearchLocations enumeration to use in finding the reference |
return | PolaMUD.Argument |
public static GetStringArgument ( string line, int index ) : PolaMUD.Argument | ||
line | string | The input string |
index | int | The index of the desired argument (1 is always the command itself) |
return | PolaMUD.Argument |
public static Interpret ( PolaMUD.TelnetConnection conn, string line ) : void | ||
conn | PolaMUD.TelnetConnection | The TelnetConnection the input is coming from |
line | string | The input string |
return | void |