Private
Public Access
Documented VerbFactory
This commit is contained in:
1 parent
01a45a2649
commit
ec11d03cc8
1 file changed
+12
@@ -10,7 +10,19 @@ using Advanced_Software_Engineering.Verbs;
|
|||||||
using Advanced_Software_Engineering.Verbs.DrawingVerbs;
|
using Advanced_Software_Engineering.Verbs.DrawingVerbs;
|
||||||
|
|
||||||
namespace Advanced_Software_Engineering {
|
namespace Advanced_Software_Engineering {
|
||||||
|
/// <summary>
|
||||||
|
/// This class is responsible for creating Verbs.
|
||||||
|
/// </summary>
|
||||||
public class VerbFactory {
|
public class VerbFactory {
|
||||||
|
/// <summary>
|
||||||
|
/// This function returns a Verb from a command and drawer.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This factory is specifically useful since it automatically converts the parameters to what they should be.
|
||||||
|
/// </remarks>
|
||||||
|
/// <param name="drawer">The drawer to affect</param>
|
||||||
|
/// <param name="fullCommand">The command as a string</param>
|
||||||
|
/// <returns>A verb that maches the command</returns>
|
||||||
public static Verb MakeVerb(Drawer drawer, string fullCommand) {
|
public static Verb MakeVerb(Drawer drawer, string fullCommand) {
|
||||||
|
|
||||||
Dictionary<string, string[]> commandAndParameters = SettingsAndHelperFunctions.CommandAndParameterParser(fullCommand);
|
Dictionary<string, string[]> commandAndParameters = SettingsAndHelperFunctions.CommandAndParameterParser(fullCommand);
|
||||||
|
|||||||
Reference in new issue
Block a user