CISC275-Spr2018 / git-pull-11-3

git-pull-11-3 created by GitHub Classroom
0 stars 0 forks source link

Implement Firing #3

Open rlyshw opened 6 years ago

rlyshw commented 6 years ago

Similar to #2, refer to that thread for discussion on how best to go about it. The solution to this will look almost identical to the solution of #2, so don't do this separately from #2.

danielhinrichs commented 6 years ago
    if(model.isFire()) {
        this.picNum = 0;
        switch(this.action) {
            case FORWARD_SE: this.action=OrcImage.FIRE_SE; break;
            case FORWARD_NE: this.action=OrcImage.FIRE_NE; break;
            case FORWARD_SW: this.action=OrcImage.FIRE_SW; break;
            case FORWARD_NW: this.action=OrcImage.FIRE_NW; break;
        }
}