Private
Public Access
Reformatted Command
This commit is contained in:
1 parent
403d98bde5
commit
8852110cf4
1 file changed
+5
-4
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -25,7 +25,7 @@ namespace Advanced_Software_Engineering
|
|||||||
type = Verb.verbTypes[commandAndParameters[0]];
|
type = Verb.verbTypes[commandAndParameters[0]];
|
||||||
|
|
||||||
//Create the command's class
|
//Create the command's class
|
||||||
verb = (Verb) Activator.CreateInstance(type);
|
verb = (Verb)Activator.CreateInstance(type);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,7 +55,8 @@ namespace Advanced_Software_Engineering
|
|||||||
{ "fill", null }
|
{ "fill", null }
|
||||||
};
|
};
|
||||||
|
|
||||||
public abstract List<List<Type>> acceptedTypes {
|
public abstract List<List<Type>> acceptedTypes
|
||||||
|
{
|
||||||
get;
|
get;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +108,7 @@ namespace Advanced_Software_Engineering
|
|||||||
public override void ExecuteVerb()
|
public override void ExecuteVerb()
|
||||||
{
|
{
|
||||||
bool penStatus = drawer.isPenDown();
|
bool penStatus = drawer.isPenDown();
|
||||||
if(!penStatus) drawer.PenDown();
|
if (!penStatus) drawer.PenDown();
|
||||||
base.ExecuteVerb();
|
base.ExecuteVerb();
|
||||||
if (!penStatus) drawer.PenUp();
|
if (!penStatus) drawer.PenUp();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user