Comments for command example.
This commit is contained in:
parent
6b843f028a
commit
52ca001a7a
@ -1,5 +1,12 @@
|
|||||||
package com.iluwatar;
|
package com.iluwatar;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* In Command pattern actions are objects that can
|
||||||
|
* be executed and undone. The commands in this example
|
||||||
|
* are spells cast by the wizard on the goblin.
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class App
|
public class App
|
||||||
{
|
{
|
||||||
public static void main( String[] args )
|
public static void main( String[] args )
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
package com.iluwatar;
|
package com.iluwatar;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Interface for spells.
|
||||||
|
*
|
||||||
|
*/
|
||||||
public abstract class Command {
|
public abstract class Command {
|
||||||
|
|
||||||
public abstract void execute(Target target);
|
public abstract void execute(Target target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user