Back to project page minecraft-connect-4.
The source code is released under:
MIT License
If you think the Android project minecraft-connect-4 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* COPYRIGHT (C) 2014 Aleksandr Belkin. All Rights Reserved. */ package sq.squ1rr.mcc4.rules; /*from w ww. j a v a 2 s.co m*/ /** * Rule base class. * @author Aleksandr Belkin */ abstract class Rule { /** list of all possible IDs */ private final int[] ids; /** current selected ID */ private int id = 0; /** * Create a rule with all possible IDs * @param _ids */ Rule(int[] _ids) { ids = _ids; id = _ids[0]; } /** * Get current ID * @return */ int getId() { return id; } /** * Set new ID * @param _id */ void setId(int _id) { id = _id; } /** * Get all possible IDs * @return */ int[] getIds() { return ids; } }