Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constant arraylist access modifiers #46

Open
hhaslam11 opened this issue Jul 14, 2016 · 0 comments
Open

Add constant arraylist access modifiers #46

hhaslam11 opened this issue Jul 14, 2016 · 0 comments

Comments

@hhaslam11
Copy link
Owner

For example, Ach.checkLearning():

    for (int i = 0; i < Weapon.arrayWeapon.size(); i++) {
        if (!Weapon.arrayWeapon.get(i).viewedAbout()) return;
    }

    for (int i = 0; i < Enemy.arrayEnemy.size(); i++) {
        if (!Enemy.arrayEnemy.get(i).viewedAbout()) return;
    }

    for (int i = 0; i < Armour.getArmours().size(); i++) {
        if (!Armour.getArmours().get(i).getViewed()) return;
    }

    for (int i = 0; i < Food.arrayFood.size(); i++) {
        if (!Food.arrayFood.get(i).viewedAbout()) return;
    }

Compare the third for loop (armour) to the rest.

@hhaslam11 hhaslam11 changed the title Add contant arraylist access modifiers Add constant arraylist access modifiers Jul 16, 2016
emmamickas added a commit to emmamickas/Text-Fighter that referenced this issue Oct 24, 2021
…in this branch, issue hhaslam11#46 in the source repo, and issue #4 in the forked repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant