Click or drag to resize
PlayerLuck Class
Player lucky controller
Inheritance Hierarchy
SystemObject
  JLChnToZ.LuckyPlayerPlayerLuck

Namespace: JLChnToZ.LuckyPlayer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class PlayerLuck

The PlayerLuck type exposes the following members.

Constructors
  NameDescription
Public methodPlayerLuck
Constructor with initial 1 luckyness defiend.
Public methodPlayerLuck(Double)
Constructor with custom luckyness defined.
Top
Properties
  NameDescription
Public propertyLuckyness
Current player's luckyness
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHandleWithLuckT(WeightedCollectionT, Double)
Gets a random item from the collection from random value given by caller, and do further process for luckyness adjustment.
Public methodHandleWithLuckT(WeightedCollectionT, Random)
Gets a random item from the collection, and do further process for luckyness adjustment.
Protected methodLuckyControl
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldluckyness
Protected fieldrandomizer
Top
Remarks
You can inherit this class to add customizaton such as changing luckyness algorithm.
See Also