Home
last modified time | relevance | path

Searched refs:RandomSync (Results 1 – 25 of 36) sorted by relevance

12

/dports/games/warmux/warmux-11.04/src/map/
H A Drandom_map.cpp42 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 Dpolygon_generator.cpp71 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 Dpolygon.cpp362 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 Dspriteanimation.cpp127 last_update += RandomSync().GetInt(0, loop_wait_random) - loop_wait_random/2; in CalculateWait()
/dports/games/warmux/warmux-11.04/src/weapon/
H A Dair_attack.cpp140 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 Dpolecat.cpp91 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 Dshotgun.cpp60 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 Dfootbomb.cpp124 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 Dsubmachine_gun.cpp64 angle += PI * RandomSync().GetDouble(-SUBMACHINE_RANDOM_ANGLE,SUBMACHINE_RANDOM_ANGLE); in RandomizeShoot()
H A Dflamethrower.cpp83 angle += PI * RandomSync().GetDouble(-FLAMETHROWER_RANDOM_ANGLE, FLAMETHROWER_RANDOM_ANGLE); in RandomizeShoot()
H A Dcluster_bomb.cpp162 Double speed = RandomSync().GetDouble(10, 25); in DoExplosion()
H A Dgnu.cpp107 norm = RandomSync().GetDouble(2.0, 5.0); in Refresh()
/dports/games/warmux/warmux-11.04/src/particles/
H A Dbody_member.cpp43 Double speed_vector_length = (Double)RandomSync().GetInt(10, 15); in BodyMemberParticle()
45 Double speed_vector_angle = - RandomSync().GetDouble(0, 3); in BodyMemberParticle()
H A Dteleport_member.cpp47 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 Dparticle.cpp125 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 Dmagic_star.cpp37 uint color=RandomSync().GetUint(0,2); in MagicStarParticle()
H A Dexplosion_smoke.cpp44 SetGravityFactor(RandomSync().GetDouble(-1.0,-2.0)); in ExplosionSmoke()
H A Dill_bubble.cpp42 vib_phi = RandomSync().GetUint(0, vib_period); in IllBubble()
H A Dfire.cpp39 return RandomSync().GetInt(0, dig_ground_time); in GetRandomDigGroundTime()
/dports/games/warmux/warmux-11.04/src/game/
H A Dgame.cpp132 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 Drandomsync.h42 inline RandomSyncGen& RandomSync() { return RandomSyncGen::GetRef(); } in RandomSync() function
/dports/games/warmux/warmux-11.04/src/object/
H A Dbonus_box.cpp112 uint randval = RandomSync().GetUint(1, 100); in ExplodesInsteadOfBonus()
/dports/games/jfsw/jfsw-c434002/src/
H A Dsync.c248 RandomSync(VOID) in RandomSync() function
296 RandomSync,
/dports/games/NBlood/NBlood-a1689a4/source/sw/src/
H A Dsync.cpp245 RandomSync(void) in RandomSync() function
293 RandomSync,
/dports/games/warmux/warmux-11.04/src/character/
H A Dcharacter.cpp104 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()

12