CastleLab / COMP3021-2021Fall-PA1-Student-Version

HKUST - COMP3021 - 2021Fall - Programming Assignment 1 - Student Version.
0 stars 2 forks source link

request clarification on the specifications on StopCell #3

Closed underscore-en closed 2 years ago

underscore-en commented 2 years ago

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:

/**
     * 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;
    }
henryhchchc commented 2 years ago

I think the documentation has already told you what to do.

Same as {@link EntityCell#setEntity(Entity)}, with additional checking.