Method | Description | |
---|---|---|
AddBallToBalance ( KineticMath.SubControls.SeesawObject ball, bool leftSide ) : void |
Adds a ball to the balance
|
|
BalanceGame ( ) : System | ||
GetBalanceOffset ( ) : double | ||
GetMaximumValue ( ) : int |
Gets the maximum value one side can have (used by Seesaw for angle adjusting)
|
|
LoadCurrentLevel ( ) : void | ||
NewGame ( ) : void |
Starts a new game and resets everything
|
|
PushBall ( KineticMath.SubControls.SeesawObject ball ) : bool |
Pushes a ball from the HeldBalls section in the assumption that it'll trigger an animation
|
|
Reset ( ) : void |
Resets the board to the current level
|
|
VerifySolution ( ) : void |
Called when the balance has stopped moving and is good to go
|
Method | Description | |
---|---|---|
GetAnswerSet ( int answer, bool moreRandomness = false ) : List |
||
GetRandomPartsToSum ( int numParts, int targetSum ) : int[] |
Produces a random array of integers that sum to a target sum
|
|
SetupLevel ( ) : void | ||
timerHandler ( Object sender, |
Starts a new game and resets everything
|
public AddBallToBalance ( KineticMath.SubControls.SeesawObject ball, bool leftSide ) : void | ||
ball | KineticMath.SubControls.SeesawObject | |
leftSide | bool | |
return | void |
public PushBall ( KineticMath.SubControls.SeesawObject ball ) : bool | ||
ball | KineticMath.SubControls.SeesawObject | The ball to remove |
return | bool |