2014-08-23 18:45:55 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
2015-01-24 23:43:35 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Commander
|
|
|
|
*
|
|
|
|
*/
|
2014-08-23 18:45:55 +03:00
|
|
|
public class Commander extends Unit {
|
|
|
|
|
2014-10-08 13:42:12 +01:00
|
|
|
public Commander(Unit... children) {
|
2014-08-23 18:45:55 +03:00
|
|
|
super(children);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void accept(UnitVisitor visitor) {
|
|
|
|
visitor.visitCommander(this);
|
|
|
|
super.accept(visitor);
|
|
|
|
}
|
2014-10-08 13:42:12 +01:00
|
|
|
|
2014-08-23 18:45:55 +03:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "commander";
|
|
|
|
}
|
|
|
|
}
|