/** Draws a value from the distribution that determines the success probability. * <p> * This method is called when the task is entered. */ @Override public void start () { p = success.nextFloat(); }
@Override public double nextDouble () { return (double)nextFloat(); } }
@Override public long nextLong () { return (long)nextFloat(); }
@Override public int nextInt () { return (int)nextFloat(); }
/** Draws a value from the distribution that determines the seconds to wait for. * <p> * This method is called when the task is entered. Also, this method internally calls {@link Timepiece#getTime() * GdxAI.getTimepiece().getTime()} to get the current AI time. This means that * <ul> * <li>if you forget to {@link Timepiece#update(float) update the timepiece} this task will keep running indefinitely.</li> * <li>the timepiece should be updated before this task runs.</li> * </ul> */ @Override public void start () { timeout = seconds.nextFloat(); startTime = GdxAI.getTimepiece().getTime(); }
/** Draws a value from the distribution that determines the success probability. * <p> * This method is called when the task is entered. */ @Override public void start () { p = success.nextFloat(); }
@Override public double nextDouble () { return (double)nextFloat(); } }
/** Draws a value from the distribution that determines the success probability. * <p> * This method is called when the task is entered. */ @Override public void start () { p = success.nextFloat(); }
@Override public double nextDouble () { return (double)nextFloat(); } }
@Override public int nextInt () { return (int)nextFloat(); }
@Override public long nextLong () { return (long)nextFloat(); }
@Override public int nextInt () { return (int)nextFloat(); }
@Override public long nextLong () { return (long)nextFloat(); }
/** Draws a value from the distribution that determines the seconds to wait for. * <p> * This method is called when the task is entered. Also, this method internally calls {@link Timepiece#getTime() * GdxAI.getTimepiece().getTime()} to get the current AI time. This means that * <ul> * <li>if you forget to {@link Timepiece#update(float) update the timepiece} this task will keep running indefinitely.</li> * <li>the timepiece should be updated before this task runs.</li> * </ul> */ @Override public void start () { timeout = seconds.nextFloat(); startTime = GdxAI.getTimepiece().getTime(); }
/** Draws a value from the distribution that determines the seconds to wait for. * <p> * This method is called when the task is entered. Also, this method internally calls {@link Timepiece#getTime() * GdxAI.getTimepiece().getTime()} to get the current AI time. This means that * <ul> * <li>if you forget to {@link Timepiece#update(float) update the timepiece} this task will keep running indefinitely.</li> * <li>the timepiece should be updated before this task runs.</li> * </ul> */ @Override public void start () { timeout = seconds.nextFloat(); startTime = GdxAI.getTimepiece().getTime(); }