/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/function/abstract_pool_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2024-12-21 22:39:17 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20241221223917-jbt2ylyz9nxjss49
various changes
[utils/utils.vala]
* Removed uneeded int32_abs function

[utils/stack]
* more informative error when trying to pop an empty stack.

[utils/random.vala]
* added c_names to functions (probobly not needed).

[utils/pair.vala]
* Made compact
* made FreeFunc delegates unowned to fix error
* added constructor Pair.with_free_func ().

[utils/named_vector.vala]
* made class compact.

[utils/meson.build]
* Reordered files in list
* added logger.vala.

[utils/logger.vala]
* Added fast and easy logger class.

[utils/fast_number.vala]
* added a bunch of cname CCode attributes.

[general]
* Spelling in comments and functions.

[meson.build]
* Made dependancies easier to read
* added vala posix dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using VQDR.Expression;
2
2
 
3
3
public abstract class VQDR.Expression.AbstractPoolToken : FunctionToken {
4
 
  protected static Dice stadard_dice = new Dice.singel (10);
 
4
  protected static Dice stadard_dice = new Dice.single (10);
5
5
 
6
6
  protected AbstractPoolToken () {
7
7
    base ();
108
108
  }
109
109
 
110
110
  /**
111
 
   * Used to initalize a specific values.
 
111
   * Used to initialize a specific values.
112
112
   */
113
113
  protected abstract void init_sequence (Context instance);
114
114
 
115
115
  /**
116
 
   * Return the pool size, or the number of rolls to performe.
 
116
   * Return the pool size, or the number of rolls to perform.
117
117
   */
118
118
  protected abstract int32 get_pool_size (Context instance);
119
119
 
137
137
  protected abstract int32 count_successes (Context instance, int32 roll_result) throws GLib.Error;
138
138
 
139
139
  /**
140
 
   * Used to evetually performe controls after the pool rolls.
 
140
   * Used to evetually perform controls after the pool rolls.
141
141
   */
142
142
  protected virtual void end_sequence (Context instance) throws GLib.Error {
143
143
    // NOOP