private void Initialize(Vector2 dimensions, int points, int w, bool c_s, bool c_v) { maxPoints = points; wind = new Wind(w); change_size = c_s; change_velocity = c_v; preMatch = true; rpsOne = new RockPaperSciccors(One); rpsTwo = new RockPaperSciccors(Two); isFinished = false; changeSizePlus = new PickSizePlus(); changeVelocityPlus = new PickVeloPlus(); changeSizeMinus = new PickSizeMinus(); changeVelocityMinus = new PickVeloMinus(); lightsPosition = new Vector3[lights.Length]; lightsAmbient = new Vector4[lights.Length]; lightsDiffuse = new Vector4[lights.Length]; lightsSpecular = new Vector4[lights.Length]; lightsRadius = new float[lights.Length]; for (int i = 0; i < lights.Length; i++) { lightsPosition[i] = lights[i].Position; lightsAmbient[i] = lights[i].Ambient; lightsDiffuse[i] = lights[i].Diffuse; lightsSpecular[i] = lights[i].Specular; lightsRadius[i] = lights[i].Radius; } }
public bool ThisBeats(RockPaperSciccors rps) { if (this.decision == 1 && rps.decision == 3) { return(true); } if (this.decision == 2 && rps.decision == 1) { return(true); } if (this.decision == 3 && rps.decision == 2) { return(true); } return(false); }