What do I return for StopCell.setEntity(args) ? The previous entity of the cell?
Skeleton:
/**
* Same as {@link EntityCell#setEntity(Entity)}, with additional checking.
*
* @throws IllegalArgumentException if the entity is not {@code null} and not an instance of {@link Player}.
*/
@Nullable
@Override
public Entity setEntity(@Nullable final Entity newEntity) {
// TODO
// return null;
}
COMP3021-2021Fall-PA1-Student-Version/app/src/main/java/hk/ust/cse/comp3021/pa1/model/StopCell.java
What do I return for
StopCell.setEntity(args)
? The previous entity of the cell?Skeleton: