Just formatting App classes to be like the other class files on the project
This commit is contained in:
@ -1,27 +1,25 @@
|
||||
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.
|
||||
*
|
||||
* 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 static void main( String[] args )
|
||||
{
|
||||
Wizard wizard = new Wizard();
|
||||
Goblin goblin = new Goblin();
|
||||
public class App {
|
||||
|
||||
goblin.printStatus();
|
||||
|
||||
wizard.castSpell(new ShrinkSpell(), goblin);
|
||||
goblin.printStatus();
|
||||
|
||||
wizard.castSpell(new InvisibilitySpell(), goblin);
|
||||
goblin.printStatus();
|
||||
wizard.undoLastSpell();
|
||||
goblin.printStatus();
|
||||
public static void main(String[] args) {
|
||||
Wizard wizard = new Wizard();
|
||||
Goblin goblin = new Goblin();
|
||||
|
||||
goblin.printStatus();
|
||||
|
||||
wizard.castSpell(new ShrinkSpell(), goblin);
|
||||
goblin.printStatus();
|
||||
|
||||
wizard.castSpell(new InvisibilitySpell(), goblin);
|
||||
goblin.printStatus();
|
||||
wizard.undoLastSpell();
|
||||
goblin.printStatus();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user