Package transientlibs.objects.general

Examples of transientlibs.objects.general.Dice.addOption()


    public void drawCard(NodeArrayList<Action> collectedCards) {
        Dice cardRoller = new Dice();

        for (Action a : collectedCards) {
            cardRoller.addOption(a.adjustedChanceToDraw, a.ID);
        }

        cardRoller.rollDice();

        getCard(Action.getActionByID(cardRoller.resultID));
View Full Code Here


            nowGroup = Looks.looks.get(nowType);
            //Log.info(nowLookType+": "+LName);

            //fill all looks of this type
            for (nowID = 0; nowID < nowGroup.size(); nowID++) {
                dice.addOption(nowGroup.get(nowID).frequency, nowID);

                //Log.info("Filling chances for look " + nowGroup.get(nowID).LName);
            }

            dice.rollDice();
View Full Code Here

        Dice dice = new Dice();
        int nowID;

for (nowID = 0; nowID < Job.jobs.size(); nowID++) {
                dice.addOption(Job.jobs.get(nowID).frequency, nowID);
            }

            dice.rollDice();

            job = Job.jobs.get(dice.resultID);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.