sarl-fireworks/src/main/generated-sources/sarl/io/sarl/demos/fireworks/RocketLauncher.java

376 lines
20 KiB
Java

package io.sarl.demos.fireworks;
import io.sarl.core.Behaviors;
import io.sarl.core.DefaultContextInteractions;
import io.sarl.core.ExternalContextAccess;
import io.sarl.core.Initialize;
import io.sarl.core.InnerContextAccess;
import io.sarl.core.Lifecycle;
import io.sarl.core.Logging;
import io.sarl.core.MemberLeft;
import io.sarl.demos.fireworks.Exit;
import io.sarl.demos.fireworks.Freeze;
import io.sarl.demos.fireworks.Launch;
import io.sarl.demos.fireworks.Positions;
import io.sarl.demos.fireworks.Rocket;
import io.sarl.demos.fireworks.RocketReady;
import io.sarl.lang.annotation.ImportedCapacityFeature;
import io.sarl.lang.annotation.PerceptGuardEvaluator;
import io.sarl.lang.annotation.SarlSpecification;
import io.sarl.lang.annotation.SyntheticMember;
import io.sarl.lang.core.Agent;
import io.sarl.lang.core.BuiltinCapacitiesProvider;
import io.sarl.lang.core.Skill;
import io.sarl.lang.util.ClearableReference;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import javax.inject.Inject;
import org.eclipse.xtext.xbase.lib.Conversions;
import org.eclipse.xtext.xbase.lib.Extension;
import org.eclipse.xtext.xbase.lib.Inline;
import org.eclipse.xtext.xbase.lib.Pure;
@SarlSpecification("0.5")
@SuppressWarnings("all")
public class RocketLauncher extends Agent {
private Double x;
private Double y;
private Integer fireQuantity;
private Double gravity;
private Positions grid;
private boolean exited = false;
@SyntheticMember
private void $behaviorUnit$Exit$0(final Exit occurrence) {
DefaultContextInteractions _$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS$CALLER = this.$castSkill(DefaultContextInteractions.class, (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS == null || this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS = $getSkill(DefaultContextInteractions.class)) : this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS);
Exit _exit = new Exit();
_$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS$CALLER.emit(_exit);
Lifecycle _$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE$CALLER = this.$castSkill(Lifecycle.class, (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE == null || this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE = $getSkill(Lifecycle.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE);
_$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE$CALLER.killMe();
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$Exit$0(final Exit it, final Exit occurrence) {
InnerContextAccess _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER = this.$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS);
boolean _hasMemberAgent = _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER.hasMemberAgent();
boolean _not = (!_hasMemberAgent);
return _not;
}
@SyntheticMember
private void $behaviorUnit$Exit$1(final Exit occurrence) {
this.exited = true;
InnerContextAccess _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER = this.$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS);
Exit _exit = new Exit();
_$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER.getInnerContext().getDefaultSpace().emit(_exit, null);
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$Exit$1(final Exit it, final Exit occurrence) {
return (this.$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS).hasMemberAgent() && (!this.exited));
}
@SyntheticMember
private void $behaviorUnit$Initialize$2(final Initialize occurrence) {
Object _get = occurrence.parameters[0];
this.x = ((Double) _get);
Object _get_1 = occurrence.parameters[1];
this.y = ((Double) _get_1);
Object _get_2 = occurrence.parameters[2];
this.fireQuantity = ((Integer) _get_2);
Object _get_3 = occurrence.parameters[3];
this.gravity = ((Double) _get_3);
Object _get_4 = occurrence.parameters[4];
this.grid = ((Positions) _get_4);
Logging _$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER = this.$castSkill(Logging.class, (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING == null || this.$CAPACITY_USE$IO_SARL_CORE_LOGGING.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING = $getSkill(Logging.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LOGGING);
_$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER.info("New rocket launcher created");
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$Initialize$2(final Initialize it, final Initialize occurrence) {
boolean _isEmpty = ((List<Object>)Conversions.doWrapArray(occurrence.parameters)).isEmpty();
boolean _not = (!_isEmpty);
return _not;
}
@SyntheticMember
private void $behaviorUnit$Initialize$3(final Initialize occurrence) {
this.x = Double.valueOf(0.0);
this.y = Double.valueOf(0.0);
this.fireQuantity = Integer.valueOf(30);
this.gravity = Double.valueOf(0.5);
this.grid = null;
Logging _$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER = this.$castSkill(Logging.class, (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING == null || this.$CAPACITY_USE$IO_SARL_CORE_LOGGING.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING = $getSkill(Logging.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LOGGING);
_$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER.info("New rocket launcher created");
DefaultContextInteractions _$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS$CALLER = this.$castSkill(DefaultContextInteractions.class, (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS == null || this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS = $getSkill(DefaultContextInteractions.class)) : this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS);
RocketReady _rocketReady = new RocketReady();
_$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS$CALLER.emit(_rocketReady);
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$Initialize$3(final Initialize it, final Initialize occurrence) {
boolean _isEmpty = ((List<Object>)Conversions.doWrapArray(occurrence.parameters)).isEmpty();
return _isEmpty;
}
@SyntheticMember
private void $behaviorUnit$Launch$4(final Launch occurrence) {
double _random = Math.random();
double vx = (_random * 2.0);
double _random_1 = Math.random();
double _multiply = (_random_1 * 5.5);
double vy = (_multiply + 2.0);
Lifecycle _$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE$CALLER = this.$castSkill(Lifecycle.class, (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE == null || this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE = $getSkill(Lifecycle.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE);
InnerContextAccess _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER = this.$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS);
_$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE$CALLER.spawnInContext(Rocket.class, _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER.getInnerContext(), this.x, this.y, Double.valueOf(vx), Double.valueOf(vy), this.gravity, this.fireQuantity, this.grid);
}
@SyntheticMember
private void $behaviorUnit$Freeze$5(final Freeze occurrence) {
InnerContextAccess _$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER = this.$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS);
_$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER.getInnerContext().getDefaultSpace().emit(occurrence, null);
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$Freeze$5(final Freeze it, final Freeze occurrence) {
boolean _isFromMe = this.isFromMe(occurrence);
boolean _not = (!_isFromMe);
return _not;
}
@SyntheticMember
private void $behaviorUnit$MemberLeft$6(final MemberLeft occurrence) {
Behaviors _$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS$CALLER = this.$castSkill(Behaviors.class, (this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS == null || this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS = $getSkill(Behaviors.class)) : this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS);
Launch _launch = new Launch();
_$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS$CALLER.wake(_launch);
}
@SyntheticMember
@Pure
private boolean $behaviorUnitGuard$MemberLeft$6(final MemberLeft it, final MemberLeft occurrence) {
return ((!this.isFromMe(occurrence)) && (!this.exited));
}
@Extension
@ImportedCapacityFeature(Logging.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_LOGGING;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(Logging.class, (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING == null || this.$CAPACITY_USE$IO_SARL_CORE_LOGGING.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING = $getSkill(Logging.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LOGGING)", imported = Logging.class)
private Logging $CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING == null || this.$CAPACITY_USE$IO_SARL_CORE_LOGGING.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_LOGGING = $getSkill(Logging.class);
}
return $castSkill(Logging.class, this.$CAPACITY_USE$IO_SARL_CORE_LOGGING);
}
@Extension
@ImportedCapacityFeature(Behaviors.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_BEHAVIORS;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(Behaviors.class, (this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS == null || this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS = $getSkill(Behaviors.class)) : this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS)", imported = Behaviors.class)
private Behaviors $CAPACITY_USE$IO_SARL_CORE_BEHAVIORS$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS == null || this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS = $getSkill(Behaviors.class);
}
return $castSkill(Behaviors.class, this.$CAPACITY_USE$IO_SARL_CORE_BEHAVIORS);
}
@Extension
@ImportedCapacityFeature(DefaultContextInteractions.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(DefaultContextInteractions.class, (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS == null || this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS = $getSkill(DefaultContextInteractions.class)) : this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS)", imported = DefaultContextInteractions.class)
private DefaultContextInteractions $CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS == null || this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS = $getSkill(DefaultContextInteractions.class);
}
return $castSkill(DefaultContextInteractions.class, this.$CAPACITY_USE$IO_SARL_CORE_DEFAULTCONTEXTINTERACTIONS);
}
@Extension
@ImportedCapacityFeature(InnerContextAccess.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(InnerContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS)", imported = InnerContextAccess.class)
private InnerContextAccess $CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS = $getSkill(InnerContextAccess.class);
}
return $castSkill(InnerContextAccess.class, this.$CAPACITY_USE$IO_SARL_CORE_INNERCONTEXTACCESS);
}
@Extension
@ImportedCapacityFeature(Lifecycle.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_LIFECYCLE;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(Lifecycle.class, (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE == null || this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE = $getSkill(Lifecycle.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE)", imported = Lifecycle.class)
private Lifecycle $CAPACITY_USE$IO_SARL_CORE_LIFECYCLE$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE == null || this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE = $getSkill(Lifecycle.class);
}
return $castSkill(Lifecycle.class, this.$CAPACITY_USE$IO_SARL_CORE_LIFECYCLE);
}
@Extension
@ImportedCapacityFeature(ExternalContextAccess.class)
@SyntheticMember
private transient ClearableReference<Skill> $CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS;
@SyntheticMember
@Pure
@Inline(value = "$castSkill(ExternalContextAccess.class, (this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS = $getSkill(ExternalContextAccess.class)) : this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS)", imported = ExternalContextAccess.class)
private ExternalContextAccess $CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS$CALLER() {
if (this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS == null || this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS.get() == null) {
this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS = $getSkill(ExternalContextAccess.class);
}
return $castSkill(ExternalContextAccess.class, this.$CAPACITY_USE$IO_SARL_CORE_EXTERNALCONTEXTACCESS);
}
@SyntheticMember
@PerceptGuardEvaluator
private void $guardEvaluator$Initialize(final Initialize occurrence, final Collection<Runnable> ___SARLlocal_runnableCollection) {
assert occurrence != null;
assert ___SARLlocal_runnableCollection != null;
if ($behaviorUnitGuard$Initialize$2(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Initialize$2(occurrence));
}
if ($behaviorUnitGuard$Initialize$3(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Initialize$3(occurrence));
}
}
@SyntheticMember
@PerceptGuardEvaluator
private void $guardEvaluator$Freeze(final Freeze occurrence, final Collection<Runnable> ___SARLlocal_runnableCollection) {
assert occurrence != null;
assert ___SARLlocal_runnableCollection != null;
if ($behaviorUnitGuard$Freeze$5(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Freeze$5(occurrence));
}
}
@SyntheticMember
@PerceptGuardEvaluator
private void $guardEvaluator$Exit(final Exit occurrence, final Collection<Runnable> ___SARLlocal_runnableCollection) {
assert occurrence != null;
assert ___SARLlocal_runnableCollection != null;
if ($behaviorUnitGuard$Exit$0(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Exit$0(occurrence));
}
if ($behaviorUnitGuard$Exit$1(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Exit$1(occurrence));
}
}
@SyntheticMember
@PerceptGuardEvaluator
private void $guardEvaluator$MemberLeft(final MemberLeft occurrence, final Collection<Runnable> ___SARLlocal_runnableCollection) {
assert occurrence != null;
assert ___SARLlocal_runnableCollection != null;
if ($behaviorUnitGuard$MemberLeft$6(occurrence, occurrence)) {
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$MemberLeft$6(occurrence));
}
}
@SyntheticMember
@PerceptGuardEvaluator
private void $guardEvaluator$Launch(final Launch occurrence, final Collection<Runnable> ___SARLlocal_runnableCollection) {
assert occurrence != null;
assert ___SARLlocal_runnableCollection != null;
___SARLlocal_runnableCollection.add(() -> $behaviorUnit$Launch$4(occurrence));
}
@Override
@Pure
@SyntheticMember
public boolean equals(final Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
RocketLauncher other = (RocketLauncher) obj;
if (this.x == null) {
if (other.x != null)
return false;
} else if (!this.x.equals(other.x))
return false;
if (this.y == null) {
if (other.y != null)
return false;
} else if (!this.y.equals(other.y))
return false;
if (this.fireQuantity == null) {
if (other.fireQuantity != null)
return false;
} else if (!this.fireQuantity.equals(other.fireQuantity))
return false;
if (this.gravity == null) {
if (other.gravity != null)
return false;
} else if (!this.gravity.equals(other.gravity))
return false;
if (this.grid == null) {
if (other.grid != null)
return false;
} else if (!this.grid.equals(other.grid))
return false;
if (other.exited != this.exited)
return false;
return super.equals(obj);
}
@Override
@Pure
@SyntheticMember
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((this.x== null) ? 0 : this.x.hashCode());
result = prime * result + ((this.y== null) ? 0 : this.y.hashCode());
result = prime * result + ((this.fireQuantity== null) ? 0 : this.fireQuantity.hashCode());
result = prime * result + ((this.gravity== null) ? 0 : this.gravity.hashCode());
result = prime * result + ((this.grid== null) ? 0 : this.grid.hashCode());
result = prime * result + (this.exited ? 1231 : 1237);
return result;
}
@SyntheticMember
public RocketLauncher(final UUID parentID, final UUID agentID) {
super(parentID, agentID);
}
@SyntheticMember
@Inject
public RocketLauncher(final BuiltinCapacitiesProvider provider, final UUID parentID, final UUID agentID) {
super(provider, parentID, agentID);
}
}