Skip to content

T_WolfCurses_Randomizer

Maxwolf edited this page Jan 2, 2016 · 2 revisions

Randomizer Class

Used for rolling the virtual dice in the simulation to determine the outcome of various events.

Inheritance Hierarchy

System.Object
  WolfCurses.Module
    WolfCurses.Randomizer
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class Randomizer : Module

The Randomizer type exposes the following members.

Constructors

 

Name Description
Public method Randomizer Initializes a new instance of the Randomizer class. Initializes a new instance of the ModuleProduct class.
  Back to Top

Methods

 

Name Description
Public method Destroy Fired when the simulation is closing and needs to clear out any data structures that it created so the program can exit cleanly. (Overrides Module.Destroy().)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Next() C64 style RND with 0 would return clock timer 0 - 60 number so we do the same here for simulation.
Public method Next(Int32) Returns a nonnegative random number less than the specified maximum.
Public method Next(Int32, Int32) Returns a random number within a specified range.
Public method NextBool Returns a random Boolean value.
Public method NextBytes Fills the elements of a specified array of bytes with random numbers.
Public method NextDouble Returns a random number between 0.0 and 1.0.
Public method OnTick Called when the simulation is ticked by underlying operating system, game engine, or potato. Each of these system ticks is called at unpredictable rates, however if not a system tick that means the simulation has processed enough of them to fire off event for fixed interval that is set in the core simulation by constant in milliseconds. (Inherited from Module.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Public Extension Method ToDescriptionAttribute Attempts to grab description attribute from any object. (Defined by AttributeExtensions.)
  Back to Top

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

WolfCurses Namespace

Clone this wiki locally