/dports/games/warmux/warmux-11.04/src/map/ |
H A D | random_map.cpp | 42 return (*this)[RandomSync().GetInt(0, size() - 1)]; in GetRandomElement() 119 uint nplats = RandomSync().GetInt(minplats, maxplats); in GeneratePlatforms() 125 Double hei = RandomSync().GetDouble(minhei, maxhei); in GeneratePlatforms() 126 if (RandomSync().GetInt(0,99) < (int) vertchance) { in GeneratePlatforms() 131 Double x = RandomSync().GetDouble(0, (width - wid)); in GeneratePlatforms() 132 Double y = RandomSync().GetDouble(0, (height - hei)); in GeneratePlatforms() 141 if (RandomSync().GetInt(0,99) < (int)elemchance) { in GeneratePlatforms() 178 Double minhei = height / RandomSync().GetDouble(7, 5); in GenerateIsland() 182 int num_of_points = RandomSync().GetInt(5, 20); in GenerateIsland() 196 if (RandomSync().GetInt(0, 5) < 1) { in GenerateIsland() [all …]
|
/dports/games/warmux/warmux-11.04/src/graphic/ |
H A D | polygon_generator.cpp | 71 top = Point2d(ZERO, (diameter + RandomSync().GetDouble(-rand_offset, rand_offset)) * ONE_HALF); in GenerateDentedCircle() 103 Double height = RandomSync().GetDouble(400.0, 600.0); in GenerateRandomShape() 104 Double width = RandomSync().GetDouble(400.0, 2000.0); in GenerateRandomShape() 105 …return GenerateRandomTrapeze(width, height, RandomSync().GetDouble(10.0, 15.0), RandomSync().GetDo… in GenerateRandomShape() 106 RandomSync().GetSign() * RandomSync().GetDouble(0.5, 1.0)); in GenerateRandomShape() 118 number_of_side_point = 1 + (int)RandomSync().GetDouble((height / FOUR) / MIN_SPACE_BETWEEN_POINT, in GenerateRandomTrapeze() 123 upper_offset = RandomSync().GetDouble(ZERO, width - lower_width); in GenerateRandomTrapeze() 129 lower_offset = RandomSync().GetDouble(ZERO, width - upper_width); in GenerateRandomTrapeze() 134 …number_of_bottom_point = RandomSync().GetInt(1 + (int)((lower_width / FOUR) / MIN_SPACE_BETWEEN_PO… in GenerateRandomTrapeze()
|
H A D | polygon.cpp | 362 int start = RandomSync().GetInt(0, GetNbOfPoint()); in GetRandomUpperPoint() 411 Double x = RandomSync().GetDouble(-x_random_offset, x_random_offset); in AddRandomCurve() 413 Double y = RandomSync().GetDouble(-y_random_offset, y_random_offset); in AddRandomCurve() 450 trans.SetRotation(RandomSync().GetDouble(-rand, rand)); in GetBezierInterpolation() 453 trans.SetRotation(RandomSync().GetDouble(-rand, rand)); in GetBezierInterpolation()
|
H A D | spriteanimation.cpp | 127 last_update += RandomSync().GetInt(0, loop_wait_random) - loop_wait_random/2; in CalculateWait()
|
/dports/games/warmux/warmux-11.04/src/weapon/ |
H A D | air_attack.cpp | 140 int fx = RandomSync().GetInt(FORCE_X_MIN, FORCE_X_MAX); in DropBomb() 142 int fy = RandomSync().GetInt(FORCE_Y_MIN, FORCE_Y_MAX); in DropBomb() 166 next_height = RandomSync().GetInt(20,100); in Refresh() 171 next_height = RandomSync().GetInt(20,100); in Refresh()
|
H A D | polecat.cpp | 91 Double norme = Double(RandomSync().GetInt(0, 500))/100; in Fart() 92 Double angle = Double(RandomSync().GetInt(0, 3000))/100; in Fart() 147 norm = RandomSync().GetDouble(1.0, 2.0); in Refresh()
|
H A D | shotgun.cpp | 60 angle += PI * RandomSync().GetDouble(-SHOTGUN_RANDOM_ANGLE,SHOTGUN_RANDOM_ANGLE); in RandomizeShoot() 61 strength += RandomSync().GetDouble(-SHOTGUN_RANDOM_STRENGTH,SHOTGUN_RANDOM_STRENGTH); in RandomizeShoot()
|
H A D | footbomb.cpp | 124 Double cluster_deviation = RandomSync().GetDouble(-half_angle_range, half_angle_range); in DoExplosion() 125 Double speed = RandomSync().GetDouble(config.nb_min_speed, config.nb_max_speed); in DoExplosion()
|
H A D | submachine_gun.cpp | 64 angle += PI * RandomSync().GetDouble(-SUBMACHINE_RANDOM_ANGLE,SUBMACHINE_RANDOM_ANGLE); in RandomizeShoot()
|
H A D | flamethrower.cpp | 83 angle += PI * RandomSync().GetDouble(-FLAMETHROWER_RANDOM_ANGLE, FLAMETHROWER_RANDOM_ANGLE); in RandomizeShoot()
|
H A D | cluster_bomb.cpp | 162 Double speed = RandomSync().GetDouble(10, 25); in DoExplosion()
|
H A D | gnu.cpp | 107 norm = RandomSync().GetDouble(2.0, 5.0); in Refresh()
|
/dports/games/warmux/warmux-11.04/src/particles/ |
H A D | body_member.cpp | 43 Double speed_vector_length = (Double)RandomSync().GetInt(10, 15); in BodyMemberParticle() 45 Double speed_vector_angle = - RandomSync().GetDouble(0, 3); in BodyMemberParticle()
|
H A D | teleport_member.cpp | 47 sin_x_max = RandomSync().GetDouble(QUARTER_PI, THREE * QUARTER_PI); in TeleportMemberParticle() 49 sin_y_max = RandomSync().GetDouble(QUARTER_PI, THREE * QUARTER_PI); in TeleportMemberParticle()
|
H A D | particle.cpp | 125 uint delta = uint(m_time_between_add * Double(RandomSync().GetUint(3, 40)) / 10); in AddPeriodic() 247 tmp_norme = RandomSync().GetDouble(0, 5000/100); in AddNow() 254 tmp_angle = RandomSync().GetDouble(-3000/1000, 0); in AddNow()
|
H A D | magic_star.cpp | 37 uint color=RandomSync().GetUint(0,2); in MagicStarParticle()
|
H A D | explosion_smoke.cpp | 44 SetGravityFactor(RandomSync().GetDouble(-1.0,-2.0)); in ExplosionSmoke()
|
H A D | ill_bubble.cpp | 42 vib_phi = RandomSync().GetUint(0, vib_period); in IllBubble()
|
H A D | fire.cpp | 39 return RandomSync().GetInt(0, dig_ground_time); in GetRandomDigGroundTime()
|
/dports/games/warmux/warmux-11.04/src/game/ |
H A D | game.cpp | 132 RandomSync().SetSeed(0xABADCAFE); in InitEverything() 142 RandomSync().InitRandom(); in InitEverything() 151 replay->SetSeed(RandomSync().GetSeed()); in InitEverything() 213 RandomSync().SetSeed(Replay::GetInstance()->GetSeed()); in InitGameData_RePlay() 222 RandomSync().InitRandom(); in InitGameData_NetGameMaster() 920 RandomSync().Verify(); in MainLoop() 1014 Double randValue = RandomSync().GetDouble(); in NewBox() 1024 if (RandomSync().GetBool()) { in NewBox()
|
/dports/games/warmux/warmux-11.04/src/network/ |
H A D | randomsync.h | 42 inline RandomSyncGen& RandomSync() { return RandomSyncGen::GetRef(); } in RandomSync() function
|
/dports/games/warmux/warmux-11.04/src/object/ |
H A D | bonus_box.cpp | 112 uint randval = RandomSync().GetUint(1, 100); in ExplodesInsteadOfBonus()
|
/dports/games/jfsw/jfsw-c434002/src/ |
H A D | sync.c | 248 RandomSync(VOID) in RandomSync() function 296 RandomSync,
|
/dports/games/NBlood/NBlood-a1689a4/source/sw/src/ |
H A D | sync.cpp | 245 RandomSync(void) in RandomSync() function 293 RandomSync,
|
/dports/games/warmux/warmux-11.04/src/character/ |
H A D | character.cpp | 104 SetDirection(RandomSync().GetBool() ? DIRECTION_LEFT : DIRECTION_RIGHT); in SetBody() 106 body->SetFrame(RandomSync().GetInt(0, body->GetFrameCount() - 1)); in SetBody() 113 return GameTime::GetInstance()->Read() + RandomSync().GetUint(ANIM_PAUSE_MIN, ANIM_PAUSE_MAX); in GetRandomAnimationTimeValue() 703 + RandomSync().GetUint(ANIM_PAUSE_MIN, ANIM_PAUSE_MAX); in Refresh()
|