CN109758766A - A kind of method and relevant apparatus that role state is synchronous - Google Patents

A kind of method and relevant apparatus that role state is synchronous Download PDF

Info

Publication number
CN109758766A
CN109758766A CN201910031615.3A CN201910031615A CN109758766A CN 109758766 A CN109758766 A CN 109758766A CN 201910031615 A CN201910031615 A CN 201910031615A CN 109758766 A CN109758766 A CN 109758766A
Authority
CN
China
Prior art keywords
state
role
time
switched
timestamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910031615.3A
Other languages
Chinese (zh)
Other versions
CN109758766B (en
Inventor
汪昆
蒲胤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910031615.3A priority Critical patent/CN109758766B/en
Publication of CN109758766A publication Critical patent/CN109758766A/en
Application granted granted Critical
Publication of CN109758766B publication Critical patent/CN109758766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of synchronous methods of role state, it include: when first role is switched to the second state from first state, remaining switching time is obtained, first state indicates that vital values are greater than the state of vital values thresholding, and the second state indicates that vital values are less than or equal to the state of vital values thresholding;Within the remaining switching time, second role is switched to second state from the first state, and second role and first role belong to same group;In object time, first role is switched into first state from the second state, and second role is switched into first state from the second state;Show the first state of first role and the first state of second role.The invention also discloses a kind of client and servers.In the present invention several roles can at the same moment switching state, allow these roles to concentrate attack strength, promote the fitness between player.

Description

A kind of method and relevant apparatus that role state is synchronous
Technical field
The present invention relates to Internet technical field more particularly to a kind of role state synchronous methods and relevant apparatus.
Background technique
With the development of multimedia technology and popularizing for wireless network, the recreation of people becomes more and more abundant, such as By hand held media device networked game play, single machine or internet game are played by computer, type of play is varied, such as penetrates Hit game, venture game, simulation, role playing game and leisure game etc..
Currently, the game of most of type can realize networking, more people are online simultaneously to be played.In one innings of game, one Role has often been configured to a plurality of life.In the same troop, when the vital values of a role exhaust, the object State of living again can be entered, during living again, other roles in this troop will continue to take action.
However, often including several roles in the same troop, different roles may consume because of different reasons Vital values to the greatest extent, role's resurrection situation is also varied in the changeable war situation, thus causes the attack strength of role that can not concentrate, The fitness between player is reduced, and reduces the interactive degree of interactive application, to be unfavorable for promoting usage rate of the user.
Summary of the invention
The embodiment of the invention provides a kind of synchronous method of role state and relevant apparatus, in interactive application Complicated interaction scenario, several roles can at the same moment switching state so that these roles can concentrate attack Strength promotes the fitness between player, enhances the interactivity between role, is conducive to increase usage rate of the user.
In view of this, the first aspect of the present invention provides a kind of method that role state is synchronous, comprising:
When first role is switched to the second state from first state, remaining switching time is obtained, wherein the residue is cut The time is changed less than or equal to default switching time, the first state indicates that vital values are greater than the state of vital values thresholding, described Second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Within the remaining switching time, second role is switched to second state from the first state, wherein institute It states second role and the first role belongs to same group;
In object time, the first role is switched into the first state from second state, and will be described Second role switches to the first state from second state, wherein the object time is the remaining switching time Finish time;
Show the first state of the first role and the first state of the second role.
The second aspect of the present invention provides a kind of method that role state is synchronous, comprising:
When role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein the state Isochronous queue includes the timestamp of the role to be synchronized, wherein the timestamp be according to the first default switching time and What current time stamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, and second state indicates The vital values are less than or equal to the state of the vital values thresholding;
The first time stamp of first role is obtained from the state synchronized queue, wherein the first role belongs to institute Role to be synchronized is stated, the first time stabs the corresponding first object moment;
The second timestamp of second role is obtained from the state synchronized queue, wherein the second role belongs to institute Role to be synchronized is stated, and the second role and the first role belong to same group, described in second timestamp is corresponding The first object moment;
At the first object moment, the first role is switched into the first state from second state, And the second role is switched into the first state from second state.
The third aspect of the present invention provides a kind of client, comprising:
Module is obtained, for when first role is switched to the second state from first state, obtaining remaining switching time, In, the residue switching time is less than or equal to default switching time, and the first state indicates that vital values are greater than vital values door The state of limit, second state indicate that the vital values are less than or equal to the state of the vital values thresholding;
Determining module, within the remaining switching time that the acquisition module obtains, second role is from described the One state is switched to second state, wherein the second role and the first role belong to same group;
Switching module, in object time, the first role to be switched to described first from second state State, and the second role is switched into the first state from second state, wherein the object time is described The finish time of remaining switching time;
Display module, for show the first role that the switching module switches the first state and The first state of the second role.
In a kind of possible design, the switching module is also used to cut when the first role from the first state When being changed to second state, mark corresponding to the first role is switched to OFF state from illuminating state;
It, will be corresponding to the second role when the second role is switched to second state from the first state Mark be switched to the OFF state from the illuminating state;
It, will be corresponding to the first role when the first role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state;
It, will be corresponding to the second role when the second role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state.
In a kind of possible design, the switching module is also used to cut when the first role from the first state It is when being changed to second state or the second role and being switched to second state from the first state, institute, group is right The mark answered is switched to OFF state from illuminating state;
When the first role is switched to the first state or the second role from described from second state When two-state is switched to the first state, mark corresponding to group is switched to illuminating state from OFF state.
In a kind of possible design, the display module, be also used to the acquisition module obtain remaining switching time it Afterwards, the remaining switching time is shown on interface.
In a kind of possible design, the display module, specifically for showing described first jiao on coordinates of targets point The first state of color, and show on the coordinates of targets point first state of the second role;
Alternatively,
The first state of the first role is shown in the first coordinate points, and in the second coordinate points described in display The first state of second role.
The fourth aspect of the present invention provides a kind of server, comprising:
Generation module, for generating state synchronized queue when role to be synchronized is switched to the second state from first state, Wherein, the state synchronized queue includes the timestamp of the role to be synchronized, wherein the timestamp is default according to first What switching time and current time stamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, described Second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Module is obtained, for obtaining the first of first role from the state synchronized queue that the generation module generates Timestamp, wherein the first role belongs to the role to be synchronized, and the first time stabs the corresponding first object moment;
The acquisition module is also used to obtain the second timestamp of second role from the state synchronized queue, wherein The second role belongs to the role to be synchronized, and the second role and the first role belong to same group, described Second timestamp corresponds to the first object moment;
Switching module, at the first object moment, the first role to be switched to from second state The first state, and the second role is switched into the first state from second state.
In a kind of possible design, the server further includes sending module;
The first role is switched to the first shape from second state for the switching module by the sending module State, and after the second role is switched to the first state from second state, role state is sent to client Synchronizing information, so that the client is according to the role state synchronizing information, at the first object moment, by described One role switches to the first state from second state, and the second role is switched to institute from second state State first state.
In a kind of possible design, the generation module, the first state specifically for obtaining the first role is cut Change the moment, wherein the first state indicates that the first role switches to second shape from the first state when switching At the time of state;
Determine that the first time stabs according to the described first default switching time and the first state switching moment;
First time stamp is added into the state synchronized queue;
Obtain the second state switching moment of the second role, wherein second state indicates described the when switching At the time of two roles switch to second state from the first state;
Second timestamp is determined according to the described first default switching time and the second state switching moment;
Second timestamp is added into the state synchronized queue.
In a kind of possible design, the server further includes receiving module and determining module;
The receiving module, for receiving and configuring at the first time before the generation module generates state synchronized queue Instruction;
The determining module, for determining described according to the received first time configuration-direct of the receiving module One default switching time;
The receiving module is also used to receive the second time configuration-direct;
The determining module is also used to be determined according to the received second time configuration-direct of the receiving module default Minimum switching time, wherein the default minimum switching time was less than for the described first default switching time.
In a kind of possible design, the generation module is specifically used for when third role is in the default minimum switching When being switched to second state from the first state in the time, the third state switching moment of the third role is obtained, Wherein, the third state switch when indicate the third role from the first state switch to second state when It carves;
Switching time is preset according to target and the third state switching moment determines the third timestamp;
The third timestamp is added into the state synchronized queue, wherein the third timestamp corresponding second Object time is spaced the target and presets switching time between second object time and the first object moment, The state synchronized queue carries the role identification of the role to be synchronized;
The acquisition module is also used to when role to be synchronized is switched to the second state from first state, the generation mould After block generates state synchronized queue, the third timestamp of the third role is obtained from the state synchronized queue;
The switching module is also used to according to the third timestamp in second object time, by the third Role switches to the first state from second state.
In a kind of possible design, the server further includes receiving module and determining module;
The receiving module, for receiving and configuring at the first time before the generation module generates state synchronized queue Instruction;
The determining module, for determining described according to the received first time configuration-direct of the receiving module One default switching time;
The receiving module is also used to receive third time configuration-direct;
The determining module is also used to according to the received first time configuration-direct determination of the receiving module Second default switching time, wherein the duration of the first default switching time be greater than the described second default switching time when It is long, or, the duration of the first default switching time is less than the duration of the described second default switching time.
In a kind of possible design, the generation module is specifically used for when third role is in the first default switching time It is interior when being switched to second state from the first state, obtain the 4th state switching moment of the third role, wherein At the time of the 4th state switching moment indicates that the third role switches to second state from the first state;
The 4th timestamp is determined according to the 4th state switching moment;
4th timestamp is added into the state synchronized queue, wherein the 4th timestamp corresponds to third Object time, the third object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is greater than the duration of the described first default switching time;
The acquisition module is also used to when role to be synchronized is switched to the second state from first state, the generation mould After block generates state synchronized queue, the 4th timestamp of the third role is obtained from the state synchronized queue;
The switching module, the 4th timestamp for being also used to be obtained according to the acquisition module is in the third target When the moment, the third role is switched into the first state from second state.
In a kind of possible design, the generation module is specifically used for when third role is in the first default switching time It is interior when being switched to second state from the first state, obtain the 5th state switching moment of the third role, wherein At the time of 5th state indicates that the third role switches to second state from the first state when switching;
The 5th timestamp is determined according to the 5th state switching moment;
5th timestamp is added into the state synchronized queue, wherein the 5th timestamp the corresponding 4th Object time, the 4th object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is less than the duration of the described first default switching time;
The acquisition module is also used to when role to be synchronized is switched to the second state from first state, the generation mould After block generates state synchronized queue, the 5th timestamp of the third role is obtained from the state synchronized queue;
The switching module, the 5th timestamp for being also used to be obtained according to the acquisition module is in the 4th target When the moment, the third role is switched into the first state from second state.
The fifth aspect of the present invention provides a kind of terminal device, comprising: memory, transceiver, processor and bus System;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
When first role is switched to the second state from first state, remaining switching time is obtained, wherein the residue is cut The time is changed less than or equal to default switching time, the first state indicates that vital values are greater than the state of vital values thresholding, described Second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Within the remaining switching time, second role is switched to second state from the first state, wherein institute It states second role and the first role belongs to same group;
In object time, the first role is switched into the first state from second state, and will be described Second role switches to the first state from second state, wherein the object time is the remaining switching time Finish time;
Show the first state of the first role and the first state of the second role;
The bus system is for connecting the memory and the processor, so that the memory and the place Reason device is communicated.
The sixth aspect of the present invention provides a kind of server characterized by comprising memory, transceiver, processor And bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
When role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein the state Isochronous queue includes the timestamp of the role to be synchronized, wherein the timestamp be according to the first default switching time and What current time stamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, and second state indicates The vital values are less than or equal to the state of the vital values thresholding;
The first time stamp of first role is obtained from the state synchronized queue, wherein the first role belongs to institute Role to be synchronized is stated, the first time stabs the corresponding first object moment;
The second timestamp of second role is obtained from the state synchronized queue, wherein the second role belongs to institute Role to be synchronized is stated, and the second role and the first role belong to same group, described in second timestamp is corresponding The first object moment;
At the first object moment, the first role is switched into the first state from second state, And the second role is switched into the first state from second state;
The bus system is for connecting the memory and the processor, so that the memory and the place Reason device is communicated.
The seventh aspect of the present invention provides a kind of computer readable storage medium, in the computer readable storage medium It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, a kind of method that role state is synchronous is provided, when first role switches from first state When for the second state, client obtains remaining switching time, wherein and remaining switching time is less than or equal to default switching time, First state indicates that vital values are greater than the state of vital values thresholding, and the second state indicates that vital values are less than or equal to vital values thresholding State, if getting role state switching command within remaining switching time, client is according to role state switching command Determine that second role is switched to the second state from first state, wherein second role and first role belong to same group, in mesh When marking the moment, first role is switched into first state from the second state, and second role is switched to first from the second state State, wherein when object time is the finish time of remaining switching time, finally, client can show the of first role The first state of one state and second role.By the above-mentioned means, for interaction scenario complicated in interactive application, it is several Role switching state can be promoted between player at the same moment so that these roles can concentrate attack strength Fitness enhances the interactivity between role, is conducive to increase usage rate of the user.
Detailed description of the invention
Fig. 1 is a configuration diagram of role state synchronization system in the embodiment of the present invention;
Fig. 2 is the method one interactive embodiment schematic diagram that role state is synchronous in the embodiment of the present invention;
Fig. 3 is method one embodiment schematic diagram that role state is synchronous in the embodiment of the present invention;
Fig. 4 is the interface schematic diagram of role and mark variation in the embodiment of the present invention;
Fig. 5 is the interface schematic diagram of remaining switching time in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of the method for role state synchronization in the embodiment of the present invention;
Fig. 7 is a flow diagram of server internal component operation mode in the embodiment of the present invention;
Fig. 8 is one embodiment schematic diagram for carrying out event handling in the embodiment of the present invention based on server internal component;
Fig. 9 is the schematic diagram brought back to life in the short time in the embodiment of the present invention;
Figure 10 is a schematic diagram in the case of extending medium wave of the embodiment of the present invention time time;
Figure 11 is a schematic diagram in the case of shortening medium wave of the embodiment of the present invention time time;
Figure 12 is client one embodiment schematic diagram in the embodiment of the present invention;
Figure 13 is server one embodiment schematic diagram in the embodiment of the present invention;
Figure 14 is another embodiment schematic diagram of server in the embodiment of the present invention;
Figure 15 is another embodiment schematic diagram of server in the embodiment of the present invention;
Figure 16 is one structural schematic diagram of terminal device in the embodiment of the present invention;
Figure 17 is one structural schematic diagram of server in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of synchronous method of role state and relevant apparatus, in interactive application Complicated interaction scenario, several roles can at the same moment switching state so that these roles can concentrate attack Strength promotes the fitness between player, enhances the interactivity between role, is conducive to increase usage rate of the user.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
It should be understood that interactive application can be online game, in online game present invention could apply to interactive application Middle player must carry out multiplayer by internet connection, refer generally to by several players through computer network virtual Under environment, character and scene are operated according to certain rules to reach the game products collection of amusement and interactional purpose It closes.Specifically, online game include but be not limited only to action game, adventure game, the game of intelligence development class, Fighting Game (FTG), Sport game, strategic class game, shooting game, Role Playing Game, the game of racing class, Massively Multiplayer Online role play the part of Drill class game and action role-playing game.The present invention will be with the first person shooting game (first- in shooting game Person shooting game, FPS) for be introduced.
FPS is to be shot at game with the subjective visual angle of player.The most of the time can't see operated angle in FPS Color, but game is carried out with the vision of player (role of control), there is stronger engagement and brings sense into.This kind of game usually needs Distinguish the movement and shooting foresight of control role, and has weapon abundant available.Main view point shooting game is mostly with historical facts Or science fiction is background, shows fierce war scene (or local combat environment).
In order to make it easy to understand, a kind of method synchronous the invention proposes role state, this method are applied to shown in FIG. 1 Role state synchronization system, referring to Fig. 1, Fig. 1 is the framework signal of role state synchronization system in the embodiment of the present invention Figure is fought, it is assumed that fight is divided into two as shown, several players control the role in game by different clients Camp, there are five role, respectively role 1, role 2, role 3, role 4 and role 5 in the camp A, in the camp B there are five Role, respectively role 6, role 7, role 8, role 9 and role 10.Time, wave were brought back to life with 60 seconds for a complete wave time Secondary resurrection refers on the timing node as defined in game entirety that the role for allowing all players to be controlled is brought back to life simultaneously at same time point The resurrection mode fought.When role 1 when falling in battle on the 15th second, the client of control role 1 will continue to carry out countdown, i.e., From continuation countdown in the 45th second.At this point, server can also synchronize timestamp corresponding when obtaining 1 death of role.When role 2 exists When falling in battle within the 40th second, the client of control role 2 equally will continue to countdown, i.e., from continuation countdown in the 20th second.At this point, service Device is synchronous to obtain timestamp corresponding when 2 death of role.At the end of countdown, role 1 and role 2 can be simultaneously specified It brings back to life in place.And server also can synchronized update role 1 and role 2 state, thereby guarantee that server and each client are same Walk the state of role.
It should be noted that client deployment is on terminal device, wherein terminal device includes but is not limited only to plate electricity Brain, laptop, palm PC, mobile phone and PC (personal computer, PC), herein without limitation.
It should be noted that server belongs to the professional game server of online game operator use, such server Can allow online game player amusement when the attribute and data of online game are stored and change (such as grade, attack Power and phylactic power defensive power etc.), but because the terminal of online game is not in local, online game is needed by internet It can run well.And single-play game all has local game server, that is, the attribute and data of single-play game are all by this Ground game server is stored and is changed, so single-play game can also run well not against internet.
It should be understood that the exchange method synchronous the present invention provides a kind of role state, referring to Fig. 2, Fig. 2 is that the present invention is real The method one interactive embodiment schematic diagram that role state is synchronous in example is applied, as shown, specifically:
In step 101, client and server detect that the role A in team A 5 falls in battle within default switching time, In, default switching time shows as countdown in client-side, shows as generating the period of state synchronized queue in server side;
In step 102, server can generate a state synchronized queue after determining that role A falls in battle, the state synchronized team The first time stamp of role A resurrection is described in column;
In step 103, client can show remaining switching time after determining that role A falls in battle on interface;
In step 104, preset in switching time at this, client detects that the role B in team A 5 falls in battle with server;
In step 105, server can add after determining that role B falls in battle in step 102 state synchronized queue generated Enter the second timestamp of role B resurrection, it is the same moment that stamp and the second timestamp are usually corresponding at the first time;
In step 106, client is terminate at the time of default switching time while bringing back to life role A and role B, correspondingly, Server is also in first time stamp and synchronization more new state corresponding to the second timestamp.
In conjunction with above-mentioned introduction, below by with the angle of client, to role state in the present invention, synchronous method is situated between It continues, referring to Fig. 3, the synchronous method one embodiment of role state includes: in the embodiment of the present invention
201, when first role is switched to the second state from first state, remaining switching time is obtained, wherein residue is cut The time is changed less than or equal to default switching time, first state indicates that vital values are greater than the state of vital values thresholding, the second state Indicate that vital values are less than or equal to the state of vital values thresholding;
In the present embodiment, player controls the role in interactive application by client, which specifically can be in FPS Heroic role, which has the function of shooting, mobile and switching weapon etc..Under normal conditions, include in one innings of FPS At least Liang Zhi troop includes at least two roles in every troop.If the first role in troop A is fallen in battle after being attacked by other side, Then client determines that first role is switched to the second state from first state, wherein first state indicates survival condition, first The vital values of first role are greater than vital values thresholding under state, and vital values thresholding can be set to 0, are greater than 0 in vital values When mean that role also lives.Second state indicates state of falling in battle, and vital values are less than or equal to give birth in the second condition Life value thresholding.
When first role is fallen in battle, client can obtain remaining switching time, and continue on the interface of client Show residue switching time.Remaining switching time is less than or equal to default switching time, and default switching time is to preset Good wave time brings back to life the time.Assuming that default switching time is 60 seconds, i.e., countdown is carried out since 60 seconds, if first role is the It falls in battle when 10 seconds, then client-side will continue to carry out countdown since 50 seconds.
It should be noted that client corresponding to each role can synchronize in the same troop in same office FPS Show identical countdown, it is synchronous to reach role with this.And server is synchronized as client and is carried out more to the state of role Newly.
202, within remaining switching time, second role is switched to the second state from first state, wherein second role with First role belongs to same group;
In the present embodiment, it is assumed that remaining switching time, there are also 50 seconds, if getting role's shape within this 50 seconds time State switching command, it is determined that other roles occur again in the same troop with first role and fall in battle, then, client is according to angle Color status command determines that the second role in the troop is also switched to the second state from first state.At this point, server can also be remembered Record the state change moment of second role.
203, in object time, first role is switched into first state from the second state, and by second role from Two-state switches to first state, wherein object time is the finish time of remaining switching time;
In the present embodiment, when reaching the finish time of remaining switching time, all angles fallen in battle in the same troop Color can all be brought back to life simultaneously.Specifically, in object time, client simultaneously brings back to life first role and second role.Specifically, First role is namely switched into first state from the second state again, meanwhile, second role is also switched to from the second state First state.
204, the first state of first role and the first state of second role are shown.
In the present embodiment, display is in the first role and second role of first state on the interface of client, so that Player can see on interface to be belonged to the role to have fallen in battle in the same troop while bringing back to life.
In the embodiment of the present invention, a kind of method that role state is synchronous is provided, when first role switches from first state When for the second state, client obtains remaining switching time, wherein and remaining switching time is less than or equal to default switching time, First state indicates that vital values are greater than the state of vital values thresholding, and the second state indicates that vital values are less than or equal to vital values thresholding State, if getting role state switching command within remaining switching time, client is according to role state switching command Determine that second role is switched to the second state from first state, wherein second role and first role belong to same group, in mesh When marking the moment, first role is switched into first state from the second state, and second role is switched to first from the second state State, wherein when object time is the finish time of remaining switching time, finally, client can show the of first role The first state of one state and second role.By the above-mentioned means, for interaction scenario complicated in interactive application, it is several Role switching state can be promoted between player at the same moment so that these roles can concentrate attack strength Fitness enhances the interactivity between role, is conducive to increase usage rate of the user.
Optionally, on the basis of above-mentioned Fig. 3 corresponding embodiment, the embodiment of the present invention provides role state synchronous side In first alternative embodiment of method, can also include:
When first role is switched to the second state from first state, by mark corresponding to first role from illuminating state It is switched to OFF state;
When second role is switched to the second state from first state, by mark corresponding to second role from illuminating state It is switched to OFF state;
When first role is switched to first state from the second state, by mark corresponding to first role from OFF state It is switched to illuminating state;
When second role is switched to first state from the second state, by mark corresponding to second role from OFF state It is switched to illuminating state.
In the present embodiment, the variation of the client end interface as caused by the change of role state will be introduced.For the ease of introducing, Referring to Fig. 4, Fig. 4 is the interface schematic diagram of role and mark variation in the embodiment of the present invention, as shown, being with FPS Example, game mode can enter a countdown after unlatching, be shown in picture overcentre.In status information indicated by A1 It survives and identifies including countdown and both sides, countdown can be reduced with playtime, and indicated by A2 be both sides' survival mark Know, each mark represents a role of player's control, and five marks of the same side belong to identical troop.When there is any role The lamp that camp is corresponded to when falling in battle, on interface shown in A2 can then disappear.Assuming that first role is fallen in battle in troop A, that is, first jiao In the case that color is switched to the second state from first state, the corresponding mark (such as lamp) of the first role switches from illuminating state For OFF state.Likewise, it is assumed that second role is fallen in battle in troop A, that is, second role is switched to second from first state In the case where state, the corresponding mark (such as lamp) of the second role also can be switched to OFF state from illuminating state.
Player is hung in conventional game mode (such as " strong point contention " or " hacker attacks ") by that will bring back to life timing On one-piece pattern, both sides player is enabled to be brought back to life according to the mode unified time.Wherein, " strong point contention " refers to battle both sides The strong point to map center is fought for, and the cumulative time that either side captures strong point reaches specified value, and keeps capturing certain Time then can be regarded as triumph." hacker attacks " refers to that battle both sides are divided into attacker and defender, and attacker needs " virus " band It to designated place and uploads " virus ", defender then needs that other side is prevented to upload " virus ".Attacker uploads " virus " and successfully calculates For triumph, defender adheres to the defined time, then it is assumed that triumph.
At the end of the countdown of interface overcentre, all dead players will brought back to life point again by client Living, the player also survived does not deal with then.Referring to Fig. 5, Fig. 5 is the interface of remaining switching time in the embodiment of the present invention Schematic diagram, as shown, being the countdown brought back to life apart from crew indicated by A3.Assuming that first role is brought back to life in troop A, In the case that namely first role is switched to first state from the second state, the corresponding mark (such as lamp) of the first role from OFF state is switched to illuminating state.Likewise, it is assumed that second role is brought back to life in troop A, that is, second role is from the second shape In the case that state is switched to first state, the corresponding mark (such as lamp) of the second role can also be switched to from OFF state is lighted State.
Optionally, there are also a kind of modes of bright light, i.e., when first role is switched to the second state or second from first state When role is switched to the second state from first state, mark corresponding to group is switched to OFF state from illuminating state.When When first role is switched to first state or second role from the second state and is switched to first state from the second state, by group Corresponding mark is switched to illuminating state from OFF state.That is, if the role for belonging to the same group is dead, Lamp corresponding to the group will extinguish.Correspondingly, if the role for belonging to the same group is brought back to life, corresponding to the group Lamp will be lighted.
Secondly, when role is switched to the second state from first state, client can be by the role in the embodiment of the present invention Corresponding mark is switched to OFF state from illuminating state, conversely, when the role is switched to first state from the second state, Mark corresponding to the role can be switched to illuminating state from OFF state again.By the above-mentioned means, either friend side is still There is the change of role state in enemy, and client all can carry out real-time exhibition according to the survival condition of role, to effectively drop Communication cost between low player, improves operation ease, while having adjusted attack rhythm and the defence of interactive application Rhythm.
Optionally, on the basis of above-mentioned Fig. 3 or Fig. 3 corresponding one embodiment, the embodiment of the present invention provides role In second alternative embodiment of method of state synchronized, the second state of first role and the second shape of second role are shown State may include:
The first state of first role is shown on coordinates of targets point, and the of second role is shown on coordinates of targets point One state;
Alternatively,
The first state of first role is shown in the first coordinate points, and the of second role is shown in the second coordinate points One state.
In the present embodiment, resurrection mode used by the role of player's control is described.At the end of countdown, belong to same The role of all deads can bring back to life simultaneously in one troop.The first resurrection mode is that different role is in the same localities again Living, for example, setting a coordinates of targets point (i.e. resurrection place) on map in advance, which can be in we In " base " of troop, when bringing back to life, first role and second role are lived again in the same resurrection place.This kind of resurrection side Formula can preferably concentrate the firepower of troop, concentrate the attack of entire team.
Second resurrection mode is that different role is brought back to life in different location respectively, wherein the resurrection o'clock of first role is the In one coordinate points, the first coordinate points can be place when first role death, be also possible to other specified places.Second jiao In the second coordinate points, the second coordinate points can be place when second role death for the resurrection o'clock of color, is also possible to other and refers to Fixed place.It is understood that if the death place of first role and second role is very close, first role and Two roles may be in the same localities resurrection.
Again, in the embodiment of the present invention, client shows the second state of first role and the second shape of second role State specifically can be, and client shows the first state of first role on coordinates of targets point, and shows on coordinates of targets point The first state of second role alternatively, client shows the first state of first role in the first coordinate points, and is sat second The first state of second role is shown on punctuate.By the above-mentioned means, both can be by these roles all when bringing back to life role It is set in the same position to bring back to life, and these roles can be set separately in different position resurrections, to increase scheme Flexibility and operability.
In conjunction with above-mentioned introduction, below by with the angle of server, to role state in the present invention, synchronous method is situated between It continues, referring to Fig. 6, the synchronous method one embodiment of role state includes: in the embodiment of the present invention
301, when role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein state Isochronous queue includes the timestamp of role to be synchronized, wherein timestamp is according to the first default switching time and current time What stamp generated, first state indicates that vital values are greater than the state of vital values thresholding, and the second state indicates that vital values are less than or equal to The state of vital values thresholding;
In the present embodiment, player controls the role in interactive application by client, which specifically can be in FPS Heroic role, which has the function of shooting, mobile and switching weapon etc..Under normal conditions, include in one innings of FPS At least Liang Zhi troop includes at least two roles in every troop.The state of each role in every troop of server monitoring, When server determines that role to be synchronized is switched to the second state from first state, state synchronized queue is can be generated in server.If First role in troop A is fallen in battle after being attacked by other side, then client determines that first role is switched to the second shape from first state State, wherein first state indicates survival condition, and the vital values of first role are greater than vital values thresholding in the first state, Vital values thresholding can be set to 0, mean that role also lives when vital values are greater than 0.Second state indicates shape of falling in battle State, vital values are less than or equal to vital values thresholding in the second condition.
Wherein, two roles belonged in the same troop, i.e. first role and second are included at least in role to be synchronized Role.And the resurrection timestamp and role identification of role to be synchronized can be recorded in state synchronized queue.In order to make it easy to understand, asking Refering to table 1, table 1 is a signal of state synchronized queue.
Table 1
Heroic role The dead moment Bring back to life the moment Bring back to life timestamp
Role A 2018-12-12 14:01:00 2018-12-12 14:05:29 1544594729
Role B 2018-12-12 14:00:45 2018-12-12 14:05:29 1544594729
Role C 2018-12-12 13:59:29 2018-12-12 14:05:29 1544594729
Role D 2018-12-12 14:59:00 2018-12-12 14:05:29 1544594730
Role E 2018-12-12 14:58:32 2018-12-12 14:05:29 1544594729
Seen from table 1, it is assumed that role A, role B, role C, role D and role E belong to same branch troop, and each role Death time in gaming is all inconsistent, and therefore, server needs to calculate separately its corresponding timestamp for each role, Calculation is as follows:
Bring back to life timestamp=current time stamp+(wave time m- dead moment when bringing back to life)
Wherein, wave time brings back to life the time as the first default switching time, and the first default switching time is usually pre-set , it usually can be set to 100 seconds, may be set to be other numerical value, this time without limitation.And current time stamp refers to service The device timestamp corresponding when calculating, for example, time of the server when calculating role A is 2018-12-1214: 01:00, the time corresponding current time stamp are 1544594460.
It is understood that 00 dividing 00 second (when Beijing when timestamp refers to Greenwich Mean Time 1970 01 month 01 day 00 Between 1970 01 month 01 day 08 when 00 divide 00 second) rise to total millisecond of present number.Popular says, timestamp is that portion can indicate A data are in the already existing data that completely can verify that of a particular point in time.Its proposition mainly provides for user A electronic evidence, to prove the generation time of certain data of user.
302, the first time stamp of first role is obtained from state synchronized queue, wherein first role belongs to be synchronized Role stabs the corresponding first object moment at the first time;
In the present embodiment, first role and second role have all been fallen in battle, at this point, server is needed in weight of the same moment Set the state of the two.It is understood that first role and second role belong in role to be synchronized need to preset first The role brought back to life at once after switching time, in practical applications, role to be synchronized can also have third role, server meeting But according to the death time of third role, it is determined whether can be brought back to life after the first default switching time.The present embodiment will be with For first role and second role, introduces and how to bring back to life the two roles simultaneously.
After server generates state synchronized queue, when can obtain the first of first role according to state synchronized queue Between stab, at the first time stamp correspond to the first object moment, please refer to table 1, it is assumed that first role be role A, then at the first time Stamp is 1544594729, and the first object moment is 2018-12-12 14:05:29.
303, the second timestamp of second role is obtained from state synchronized queue, wherein second role belongs to be synchronized Role, and second role and first role belong to same group, the second timestamp corresponds to the first object moment;
In the present embodiment, similarly, server can obtain the second timestamp of second role according to state synchronized queue, Second timestamp corresponds to the second object time, it is assumed that and second role is role B, then the second timestamp is 1544594729, Second object time is 2018-12-12 14:05:29.
It should be noted that when server resurrection timestamp corresponding to calculating different role, it may be because of service The failure or other factors of device system, and cause the resurrection timestamp of different role in the same troop inconsistent, please again Refering to table 1, by taking role D as an example, corresponding resurrection timestamp is 1544594730, when the timestamp is corresponding with other roles Between stamp (1544594729) it is inconsistent, but in reasonable error range, then server can unite to such case One processing is used uniformly that is, when determining the corresponding resurrection moment and brings back to life 2018- at the time of corresponding to timestamp 1544594729 12-12 14:05:29 thereby guarantees that the role in same branch troop can synchronously complete the switching of state.
304, at the first object moment, first role is switched into first state from the second state, and by second role First state is switched to from the second state.
In the present embodiment, determines in same branch troop after the resurrection moment of dead role, will bring back to life in server First role is switched back into survival condition from dead state when moment arrives, correspondingly, second role is also synchronized from dead state Switch back into survival condition.Wherein, bringing back to life the moment is the first object moment, and dead state is the second state, and survival condition is For first state.
In the embodiment of the present invention, a kind of method that role state is synchronous is provided, when role to be synchronized cuts from first state When being changed to the second state, server generates state synchronized queue, and then server can obtain first jiao from state synchronized queue The first time of color stabs, and the second timestamp of second role is obtained from state synchronized queue, at the first time stamp and second Timestamp corresponds to the same first object moment, finally, server is at the first object moment, by first role from the second shape State switches to first state, and second role is switched to first state from the second state.By the above-mentioned means, for interactive mode The complicated interaction scenario in, several roles can at the same moment switching state so that these roles can collect Middle attack strength promotes the fitness between player, enhances the interactivity between role, is conducive to increase usage rate of the user.
Optionally, on the basis of above-mentioned Fig. 6 corresponding embodiment, the embodiment of the present invention provides role state synchronous side In first alternative embodiment of method, first role is switched into first state from the second state, and by second role from the second shape State switches to after first state, can also include:
Role state synchronizing information is sent to client, so that client is according to role state synchronizing information, in the first mesh When marking the moment, first role is switched into first state from the second state, and second role is switched to first from the second state State, wherein role state synchronizing information carries stamp and the second timestamp at the first time.
In the present embodiment, update in server sync in same branch troop after the state of different role, in order to enable client End is also able to maintain synchronization, can send role's synchronizing information to client.Specifically, server can send angle to customer end A Colour synchronisation information is carried in role's synchronizing information and is stabbed at the first time, obtains first after customer end A parsing role's synchronizing information Timestamp, so that it is determined that bringing back to life the time (determine the first object moment) accordingly.Similarly, server can be to customer end B Role's synchronizing information is sent, the second timestamp is carried in role's synchronizing information, customer end B obtains after parsing role's synchronizing information To the second timestamp, so that it is determined that bring back to life the time (determine the first object moment) accordingly, then, customer end A and customer end B The state of first role and second role is updated at the first object moment.
It is understood that client can all roles of distance be simultaneously in the same troop by countdown interface display The remaining time of resurrection, for example, countdown is 5 seconds, then after 5 seconds sometime, the role in the troop can be preparatory It brings back to life in the place of setting.
Secondly, first role and second role are being switched to from the second state by server in the embodiment of the present invention After one state, role state synchronizing information can also be sent to client, so that client is according to role state synchronizing information, When also at the time of identical, first role is switched into first state from the second state, and second role is cut from the second state Shift to first state.By the above-mentioned means, server and client side can synchronize the state of role, server and visitor are avoided the occurrence of The nonsynchronous situation in family end, thus the feasibility and operability of lifting scheme.
Optionally, on the basis of above-mentioned Fig. 6 corresponding embodiment, the embodiment of the present invention provides role state synchronous side In second alternative embodiment of method, state synchronized queue is generated, may include:
Obtain the first state switching moment of first role, wherein indicate first role from first when first state switches At the time of state switches to the second state;
It is determined according to the first default switching time and first state switching moment and is stabbed at the first time;
First time stamp is added into state synchronized queue;
Obtain the second state switching moment of second role, wherein indicate second role from first when the second state switches At the time of state switches to the second state;
The second timestamp is determined according to the first default switching time and the second state switching moment;
Second timestamp is added into state synchronized queue.
In the present embodiment, server needs first to obtain first jiao of dead during generating state synchronized queue The dead moment corresponding to color, that is, at the time of switch to the second state from first state, then calculated using following formula It stabs at the first time:
First time stamp=current time stamp+(the first default switching time-first state switching moment)
First time stamp is added into state synchronized queue.Similarly, it for the second role of dead, uses Following formula calculates the second timestamp:
Second timestamp=current time stamp+(first default the-the second state switching moment switching time)
Second timestamp is added into state synchronized queue, phase can be determined according to first time stamp and the second timestamp The resurrection moment answered.
For the ease of introducing, referring to Fig. 7, Fig. 7 is one of server internal component operation mode in the embodiment of the present invention A flow diagram, as shown, wave time brings back to life rule and the difference of other resurrection modes essentially consists in the control for bringing back to life the time Aspect is brought back to life since it is desired that controlling each role in the same time, and the time point that each role is killed is different, so at angle Color will calculate according to the dead moment when being killed and bring back to life the moment.In step sl, the base game mode of server internal Each frame of (the Game Mode Base) component in game is played a game calculates the millisecond number started apart from next wave time.In step S2 In, Game Mode Base component can update timer simultaneously, and inform client, so that client can locally be shown down Timing, it is generally the case that client shows countdown with the second.In step S3, the Modal action in server brings back to life controller (Mode Action Reborn Controller) can monitor role's death incident, when having listened to role's death just Event handling function can be executed, can be obtained from Game Mode Base component apart from next subwave in event handling function The millisecond number of secondary beginning stores the timestamp that this time brings back to life plus current time as role next time to state synchronized team In column.In step S4, game can inquire state synchronized queue in every frame, and the data item for having arrived at the resurrection time executes multiple Logic living.
Further, the function of event handling function is introduced below in conjunction with Fig. 8, referring to Fig. 8, Fig. 8 is that the present invention is real One embodiment schematic diagram for carrying out event handling in example based on server internal component is applied, as shown, event source is can The game object of energy meeting trigger event, event handling function are exactly the specific processing logic of event, and event center is for managing thing Binding relationship between part and event handling function.In the corresponding relationship of event center registered events and event handling function, than Such as, the death incident DeathEvent of the role and processing logic OnHeroDeath () after death.Trigger event can recorde Trigger (DeathEvent) event when for role's blood volume being 0.It is found in event center at the corresponding event of event Function is managed, OnHeroDeath () function is executed.
Secondly, describing the process that server generates state synchronized queue in the embodiment of the present invention, as server is first obtained The first state switching moment of first role is taken, then determines the according to the first default switching time and first state switching moment One timestamp, and first time stamp is added into state synchronized queue, similarly, the second state for obtaining second role is cut It changes the moment, the second timestamp is then determined according to the first default switching time and the second state switching moment, and by the second time Stamp is added into state synchronized queue.By the above-mentioned means, server can be calculated according to the situation of change of role's virtual condition It is corresponding to bring back to life timestamp, to generate state synchronized list, in the list not dead role is not needed to calculate, To save the computing resource of server, and the realization efficiency of lifting scheme.
Optionally, on the basis of above-mentioned Fig. 6 corresponding embodiment, the embodiment of the present invention provides role state synchronous side In method third alternative embodiment, before generating state synchronized queue, can also include:
Receive first time configuration-direct;
Determined for the first default switching time according to first time configuration-direct;
Receive the second time configuration-direct;
Default minimum switching time is determined according to the second time configuration-direct, wherein default minimum switching time is less than the One default switching time.
In the present embodiment, the mode of the flexible configuration time before server generates state synchronized queue is additionally provided, under Introduce two kinds of common configuration modes in face.
Specifically, server receives the first time configuration-direct that user is triggered by client, this is configured at the first time Instruction is for determining for the first default switching time, wherein the first default switching time was the resurrection time of wave time, the One default finish time switching time, the role that fallen in battle belonged in the same troop are brought back to life at the same moment.Usual feelings It under condition, can set for the first default switching time to 100 seconds or 60 seconds, also may be set according to actual conditions corresponding Value.Server can also receive the second time configuration-direct that user is triggered by client, which uses It is preset minimum switching time in determining, default minimum switching time is properly termed as " force_death_time " again, presets minimum Switching time needed to be less than for the first default switching time, and default minimum switching time indicates the role to fall in battle within this time not It can be brought back to life in this brings back to life the time, but can resurrection when terminating next resurrection time.
It is understood that default minimum switching time belongs to variable, it is generally the case that when can be by default minimum switching Between be set as 5 seconds or 2 seconds, corresponding value also may be set according to actual conditions.
Secondly, user can also configure the different time according to actual scene, that is, service in the embodiment of the present invention Before device generates state synchronized queue, server can determine for the first default switching time according to first time configuration-direct, and And default minimum switching time is determined according to the second time configuration-direct.By the above-mentioned means, can be matched according to different scenes Set corresponding switching time, wherein default switching time is to bring back to life countdown, and configuration brings back to life countdown being capable of the entire office of control The compactness of gesture.And minimum switching time can prevent some unreasonable situations from occurring, thus the feasibility of lifting scheme with Practicability.
Optionally, on the basis of above-mentioned Fig. 6 corresponding third embodiment, it is same that the embodiment of the present invention provides role state In the 4th alternative embodiment of method of step, when role to be synchronized is switched to the second state from first state, it is same to generate state Queue is walked, may include:
When third role is switched to the second state from first state within default minimum switching time, third role is obtained Third state switching moment, wherein indicate that third role from first state switches to the second state when the third state switches Moment;
Switching time is preset according to target and third state switching moment determines third timestamp;
Third timestamp is added into state synchronized queue, wherein corresponding second object time of third timestamp, second It is spaced a target between object time and first object moment to preset switching time, state synchronized queue carries role to be synchronized Role identification;
When role to be synchronized is switched to the second state from first state, after generating state synchronized queue, method is also wrapped It includes:
The third timestamp of third role is obtained from state synchronized queue;
According to third timestamp in the second object time, third role is switched into first state from the second state.
In the present embodiment, it will introduce and how the role to have fallen in battle be brought back to life according to default minimum switching time.Specifically, The present invention is introduced by taking third role as an example, and third role and first role and second role belong to the same troop.The One role and second role are not fallen in battle within default minimum switching time, and therefore, first role and second role are multiple at first It is brought back to life in wave time (i.e. first object moment) living.And third role falls in battle within default minimum switching time, therefore, server needs Third timestamp is calculated according to the dead moment (i.e. third state switching moment) of third role, it is to be understood that the The calculation of three timestamps can refer in above-described embodiment, to the calculation of first time stamp and the second timestamp, herein It does not repeat them here.The third timestamp being calculated is added into state synchronized queue server, wherein third timestamp is corresponding The second object time, the second object time is second finish time for bringing back to life wave time, therefore, the second object time and the It is spaced a target between one object time to preset switching time, and target presets switching time as the first default switching time Next period.Server updates the state of third role, i.e. third role from dead state in the second object time It is switched to survival condition.
In order to make it easy to understand, referring to Fig. 9, Fig. 9 is the schematic diagram brought back to life in the short time in the embodiment of the present invention, such as Shown in figure, it is assumed that it is 60 seconds that target, which presets switching time (unicast time time), and presetting minimum switching time is 2 seconds, from T0 to T1 It is a complete unicast time time from T1 to T2 for a complete unicast time time, it is complete single for one from T2 to T3 Wave time time, the timing since T0, when certain role is at the 59th second when falling in battle, when the resurrection moment of the role is no longer T1 It carves, but is brought back to life in next wave time finish time, i.e. T2 moment.
Again, in the embodiment of the present invention, server detects that third role is within default minimum switching time from first When state is switched to the second state, the third state switching moment of third role is obtained, then server is cut according to target is default It changes the time and third state switching moment determines third timestamp, then third timestamp is added into state synchronized queue, take Business device obtains the third timestamp of third role from state synchronized queue, finally according to third timestamp in the second object time When, third role is switched into first state from the second state.By the above-mentioned means, certain role can be avoided the occurrence of will The case where falling in battle, then bring back to life immediately again when wave time is brought back to life is reached, to improve the reasonability of scheme, and closer to answering With the playing method of itself.
Optionally, on the basis of above-mentioned Fig. 6 corresponding embodiment, the embodiment of the present invention provides role state synchronous side In the 5th alternative embodiment of method, before generating state synchronized queue, can also include:
Receive first time configuration-direct;
Determined for the first default switching time according to first time configuration-direct;
Receive third time configuration-direct;
Determined for the second default switching time according to first time configuration-direct, wherein the duration of the first default switching time Greater than the duration of the second default switching time, or, the duration of the first default switching time less than the second default switching time when It is long.
In the present embodiment, the mode of the flexible configuration time before server generates state synchronized queue is additionally provided, under Introduce two kinds of common configuration modes in face.
Specifically, server receives the first time configuration-direct that user is triggered by client, this is configured at the first time Instruction is for determining for the first default switching time, wherein the first default switching time was the resurrection time of wave time, the One default finish time switching time, the role that fallen in battle belonged in the same troop are brought back to life at the same moment.Usual feelings It under condition, can set for the first default switching time to 100 seconds or 60 seconds, also may be set according to actual conditions corresponding Value.Server can also receive the second time configuration-direct that user is triggered by client, which uses In determining for the second default switching time, the first default switching time and the second default switching time belong to the unicast time time, In practical application, it is contemplated that multiple periods may be designed in one innings of FPS, for example, game starts to belong within first 10 minutes commonly Period, first set during this period of time default switching time, game started to enter crash time after ten minutes as 60 seconds Section, the attack frequency between this period Liang Zhi troop will increase, game tempo increase, second set during this period of time Default switching time is 30 seconds.
It is understood that in practical applications, crash time section can be entered from common time section, it can also be urgent The anxious period enters back into common time section, herein without limitation.
Secondly, user can also configure the different time according to actual scene, that is, service in the embodiment of the present invention Before device generates state synchronized queue, server can determine for the first default switching time according to first time configuration-direct, and And the second default switching time was determined according to first time configuration-direct.By the above-mentioned means, can be matched according to different scenes Set corresponding switching time, wherein default switching time is to bring back to life countdown, and configuration brings back to life countdown being capable of the entire office of control The compactness of gesture, and play the role of controlling game rhythm in different scene of game, increase the spirit of scene of game Activity, so that further lifting scheme is operability.
Optionally, on the basis of above-mentioned Fig. 6 corresponding 5th embodiment, it is same that the embodiment of the present invention provides role state In the 6th alternative embodiment of method of step, when role to be synchronized is switched to the second state from first state, it is same to generate state Queue is walked, may include:
When third role is switched to the second state from first state within the first default switching time, third role is obtained The 4th state switching moment, wherein the 4th state switching moment indicated that third role from first state switched to the second state At the time of;
The 4th timestamp is determined according to the 4th state switching moment;
4th timestamp is added into state synchronized queue, wherein the 4th timestamp corresponds to third object time, third Object time is the initial time of the second default switching time, wherein it is default that the duration of the second default switching time is greater than first The duration of switching time;
When role to be synchronized is switched to the second state from first state, after generating state synchronized queue, method is also wrapped It includes:
The 4th timestamp of third role is obtained from state synchronized queue;
According to the 4th timestamp in third object time, third role is switched into first state from the second state.
In the present embodiment, will introduce how from the urgent period to enter common time section.Specifically, the present invention is with third It is introduced for role, third role and first role and second role belong to the same troop, first role and second Role is brought back to life in first resurrection wave time (i.e. first object moment).Wherein, it is default to correspond to first for first resurrection wave time Switching time.And third role was fallen in battle within the last one first default switching time, that is to say, that when next switching Between be the second default switching time, therefore, server need to obtain third object the dead moment (i.e. the 4th state switch when Carve), then the position according to the 4th state switching moment within the first default switching time, generates the 4th timestamp.Namely It says, server also needs to judge that the 4th state switching moment whether within default minimum switching time, thereby determined that next time multiple At the time of living.4th timestamp is added into state synchronized queue server, wherein the 4th timestamp corresponds to third target Moment, third object time are exactly the initial time of the second default switching time.Due to being entered commonly from the urgent period Period, therefore, the duration of the second default switching time are greater than the duration of the first default switching time.Server is in synchronous third When the state of role, the 4th timestamp can be obtained from state synchronized queue, and bring back to life in corresponding third object time Third role.
In order to make it easy to understand, referring to Fig. 10, Figure 10 is one in the case of extending medium wave of the embodiment of the present invention time time Schematic diagram, as shown in the figure, it is assumed that the first default switching time (unicast time time) is 60 seconds, default for one first from T0 to T1 Switching time is a first default switching time from T1 to T2, it is assumed that the second default switching time (unicast time time) is 80 Second, from T1 to T2 ' it is a second default switching time.The timing since T0, when certain role is in the first default switching time When interior the 55th second is fallen in battle, the resurrection moment of the role is the initial time of the second default switching time, i.e., multiple at the T2 ' moment It is living.
Again, in the embodiment of the present invention, a kind of resurrection mode that common time section is entered from the urgent period is provided, I.e. when third role is switched to the second state from first state within the first default switching time, the 4th of third role is obtained Then state switching moment determines the 4th timestamp according to the first default switching time and the 4th state switching moment, then by the Four timestamps are added into state synchronized queue.Finally, server can obtain the of third role from state synchronized queue Four times, and according to the 4th timestamp in third object time, third role is switched into first state from the second state.It is logical Aforesaid way is crossed, can control the rhythm of interactive application, normal state is adjusted to from the state of emergency, reduces in game process Tension, and increase the flexibility ratio of scene.
Optionally, on the basis of above-mentioned Fig. 6 corresponding 5th embodiment, it is same that the embodiment of the present invention provides role state In the 7th alternative embodiment of method of step, when role to be synchronized is switched to the second state from first state, it is same to generate state Queue is walked, may include:
When third role is switched to the second state from first state within the first default switching time, third role is obtained The 5th state switching moment, wherein indicate that third role from first state switches to the second state when the 5th state switches Moment;
The 5th timestamp is determined according to the 5th state switching moment;
5th timestamp is added into state synchronized queue, wherein corresponding 4th object time of the 5th timestamp, the 4th Object time is the initial time of the second default switching time, wherein the duration of the second default switching time is default less than first The duration of switching time;
When role to be synchronized is switched to the second state from first state, after generating state synchronized queue, method is also wrapped It includes:
The 5th timestamp of third role is obtained from state synchronized queue;
According to the 5th timestamp in four object times, third role is switched into first state from the second state.
In the present embodiment, will introduce how from common time section to enter crash time section.Specifically, the present invention is with third It is introduced for role, third role and first role and second role belong to the same troop, first role and second Role is brought back to life in first resurrection wave time (i.e. first object moment).Wherein, it is default to correspond to first for first resurrection wave time Switching time.And third role was fallen in battle within the last one first default switching time, that is to say, that when next switching Between be the second default switching time, therefore, server need to obtain third object the dead moment (i.e. the 5th state switch when Carve), then the position according to the 5th state switching moment within the first default switching time, generates the 5th timestamp.Namely It says, server also needs to judge that the 5th state switching moment whether within default minimum switching time, thereby determined that next time multiple At the time of living.5th timestamp is added into state synchronized queue server, wherein the 5th timestamp corresponds to the 4th target Moment, the 4th object time are exactly the initial time of the second default switching time.Due to being entered promptly from common time section Period, therefore, the duration of the duration of the second default switching time less than the first default switching time.Server is in synchronous third When the state of role, the 5th timestamp can be obtained from state synchronized queue, and bring back to life in corresponding four object time Third role.
In order to make it easy to understand, please referring to Figure 11, Figure 11 is one in the case of shortening medium wave of the embodiment of the present invention time time Schematic diagram, as shown in the figure, it is assumed that the first default switching time (unicast time time) is 60 seconds, is the first default switching from T0 to T1 Time, it is assumed that the second default switching time (unicast time time) is 40 seconds, from T1 to T2 ' it was the second default switching time, from T2 ' It was the second default switching time to T3, if role is dead before the T2 ' time point (such as dead within the first default switching time Die), then next time can bring back to life at T2 ' time point, if role is after T2 ' time point (such as within the second default switching time It is dead) can be brought back to life at T3 time point dead next time
It is right in the equally applicable above-described embodiment of role dead for a period of time for the very little before wave time brings back to life time point The description of default minimum switching time, is not repeated herein.
Again, in the embodiment of the present invention, a kind of resurrection mode that crash time section is entered from common time section is provided, I.e. when third role is switched to the second state from first state within the first default switching time, the 5th of third role is obtained Then state switching moment determines the 5th timestamp according to the first default switching time and the 5th state switching moment, then by the Five timestamps are added into state synchronized queue.Finally, server can obtain the of third role from state synchronized queue Third role is switched to first state from the second state according to the 5th timestamp in four object times by five timestamps.It is logical Aforesaid way is crossed, can control the rhythm of interactive application, the state of emergency is adjusted to from normal state, is promoted in game process Tension enhances the interactive degree between player, and increases the flexibility ratio of scene.
The client in the present invention is described in detail below, please refers to Figure 12, Figure 12 is visitor in the embodiment of the present invention Family end one embodiment schematic diagram, client 40 include:
Module 401 is obtained, when for when first role is switched to the second state from first state, obtaining remaining switch Between, wherein the residue switching time is less than or equal to default switching time, and the first state indicates that vital values are greater than life It is worth the state of thresholding, second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Determining module 402, within the remaining switching time that the acquisition module obtains, second role is from described First state is switched to second state, wherein the second role and the first role belong to same group;
The first role is switched to described the from second state in object time by switching module 403 One state, and the second role is switched into the first state from second state, wherein the object time is institute State the finish time of remaining switching time;
Display module 404, for showing that the switching module 403 switches first shape of the obtained first role The first state of state and the second role.
Optionally, the display module 404 is also used to after the acquisition module 401 obtains remaining switching time, on boundary The remaining switching time is shown on face.
In the present embodiment, when first role is switched to the second state from first state, acquisition module 401 obtains residue and cuts Change the time, wherein the residue switching time is less than or equal to default switching time, and the first state indicates that vital values are greater than The state of vital values thresholding, second state indicate that the vital values are less than or equal to the state of the vital values thresholding, really Within the remaining switching time that the acquisition module 401 obtains, second role switches cover half block 402 from the first state For second state, wherein the second role and the first role belong to same group, in object time, switching The first role is switched to the first state from second state by module 403, and by the second role from described Second state switches to the first state, wherein the object time is the finish time of the remaining switching time, display Module 404 shows that the switching module 403 switches the first state of the obtained first role and second jiao described The first state of color.
In the embodiment of the present invention, a kind of client synchronous for role state is provided, when first role is from the first shape When state is switched to the second state, client obtains remaining switching time, wherein remaining switching time is less than or equal to default switching Time, first state indicate that vital values are greater than the state of vital values thresholding, and the second state indicates that vital values are less than or equal to life It is worth the state of thresholding, if getting role state switching command within remaining switching time, client is cut according to role state It changes instruction and determines that second role is switched to the second state from first state, wherein second role and first role belong to same a group First role is switched to first state from the second state, and second role is switched from the second state in object time by group To first state, wherein when object time is the finish time of remaining switching time, finally, client can show first jiao The first state of color and the first state of second role.By the above-mentioned means, for interaction feelings complicated in interactive application Condition, several roles switching state so that these roles can concentrate attack strength can promote player at the same moment Between fitness, enhance role between interactivity, be conducive to increase usage rate of the user.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 12, client 40 provided in an embodiment of the present invention In another embodiment,
The switching module 403 is also used to be switched to second state from the first state when the first role When, mark corresponding to the first role is switched to OFF state from illuminating state;
It, will be corresponding to the second role when the second role is switched to second state from the first state Mark be switched to the OFF state from the illuminating state;
It, will be corresponding to the first role when the first role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state;
It, will be corresponding to the second role when the second role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state.
Optionally, the switching module 403 is also used to be switched to described the from the first state when the first role When two-state or the second role are switched to second state from the first state, by mark corresponding to group from Illuminating state is switched to OFF state;
When the first role is switched to the first state or the second role from described from second state When two-state is switched to the first state, mark corresponding to group is switched to illuminating state from OFF state.
Secondly, when role is switched to the second state from first state, client can be by the role in the embodiment of the present invention Corresponding mark is switched to OFF state from illuminating state, conversely, when the role is switched to first state from the second state, Mark corresponding to the role can be switched to illuminating state from OFF state again.By the above-mentioned means, either friend side is still There is the change of role state in enemy, and client all can carry out real-time exhibition according to the survival condition of role, to effectively drop Communication cost between low player, improves operation ease, while having adjusted attack rhythm and the defence of interactive application Rhythm.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 12, client 40 provided in an embodiment of the present invention In another embodiment,
The display module 404, specifically for showing the first state of the first role on coordinates of targets point, And the first state of the second role is shown on the coordinates of targets point;
Alternatively,
The first state of the first role is shown in the first coordinate points, and in the second coordinate points described in display The first state of second role.
Again, in the embodiment of the present invention, client shows the second state of first role and the second shape of second role State specifically can be, and client shows the first state of first role on coordinates of targets point, and shows on coordinates of targets point The first state of second role alternatively, client shows the first state of first role in the first coordinate points, and is sat second The first state of second role is shown on punctuate.By the above-mentioned means, both can be by these roles all when bringing back to life role It is set in the same position to bring back to life, and these roles can be set separately in different position resurrections, to increase scheme Flexibility and operability.
The server in the present invention is described in detail below, please refers to Figure 13, Figure 13 is to take in the embodiment of the present invention Business device one embodiment schematic diagram, server 50 include:
Generation module 501, for generating state synchronized team when role to be synchronized is switched to the second state from first state Column, wherein the state synchronized queue includes the timestamp of the role to be synchronized, wherein the timestamp is according to first What default switching time and current time stamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, Second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Module 502 is obtained, for obtaining first role from the state synchronized queue that the generation module 501 generates First time stamp, wherein the first role belongs to the role to be synchronized, when the first time stabs corresponding first object It carves;
The acquisition module 502 is also used to obtain the second timestamp of second role from the state synchronized queue, In, the second role belongs to the role to be synchronized, and the second role and the first role belong to same group, institute It states the second timestamp and corresponds to the first object moment;
Switching module 503, at the first object moment, the first role to be switched from second state The extremely first state, and the second role is switched into the first state from second state.
In the embodiment of the present invention, a kind of method that role state is synchronous is provided, when role to be synchronized cuts from first state When being changed to the second state, server generates state synchronized queue, and then server can obtain first jiao from state synchronized queue The first time of color stabs, and the second timestamp of second role is obtained from state synchronized queue, at the first time stamp and second Timestamp corresponds to the same first object moment, finally, server is at the first object moment, by first role from the second shape State switches to first state, and second role is switched to first state from the second state.By the above-mentioned means, for interactive mode The complicated interaction scenario in, several roles can at the same moment switching state so that these roles can collect Middle attack strength promotes the fitness between player, enhances the interactivity between role, is conducive to increase usage rate of the user.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 13, Figure 14 is please referred to, it is provided in an embodiment of the present invention In another embodiment of server 50, the server 50 further includes sending module 504;
The sending module 504 switches to the first role from second state for the switching module 503 First state, and after the second role is switched to the first state from second state, angle is sent to client Color state synchronization, so that the client according to the role state synchronizing information, at the first object moment, is incited somebody to action The first role switches to the first state from second state, and the second role is cut from second state Shift to the first state.
Secondly, first role and second role are being switched to from the second state by server in the embodiment of the present invention After one state, role state synchronizing information can also be sent to client, so that client is according to role state synchronizing information, When also at the time of identical, first role is switched into first state from the second state, and second role is cut from the second state Shift to first state.By the above-mentioned means, server and client side can synchronize the state of role, server and visitor are avoided the occurrence of The nonsynchronous situation in family end, thus the feasibility and operability of lifting scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 13, server 50 provided in an embodiment of the present invention In another embodiment,
The generation module 501, specifically for obtaining the first state switching moment of the first role, wherein described At the time of first state indicates that the first role switches to second state from the first state when switching;
Determine that the first time stabs according to the described first default switching time and the first state switching moment;
First time stamp is added into the state synchronized queue;
Obtain the second state switching moment of the second role, wherein second state indicates described the when switching At the time of two roles switch to second state from the first state;
Second timestamp is determined according to the described first default switching time and the second state switching moment;
Second timestamp is added into the state synchronized queue.
Secondly, describing the process that server generates state synchronized queue in the embodiment of the present invention, as server is first obtained The first state switching moment of first role is taken, then determines the according to the first default switching time and first state switching moment One timestamp, and first time stamp is added into state synchronized queue, similarly, the second state for obtaining second role is cut It changes the moment, the second timestamp is then determined according to the first default switching time and the second state switching moment, and by the second time Stamp is added into state synchronized queue.By the above-mentioned means, server can be calculated according to the situation of change of role's virtual condition It is corresponding to bring back to life timestamp, to generate state synchronized list, in the list not dead role is not needed to calculate, To save the computing resource of server, and the realization efficiency of lifting scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 13, Figure 15 is please referred to, it is provided in an embodiment of the present invention In another embodiment of server 50, the server 50 further includes receiving module 505 and determining module 506;
The receiving module 505 is used for before the generation module 501 generates state synchronized queue, when receiving first Between configuration-direct;
The determining module 506, for being determined according to the received first time configuration-direct of the receiving module 505 The first default switching time;
The receiving module 505 is also used to receive the second time configuration-direct;
The determining module 506 is also used to true according to the received second time configuration-direct of the receiving module 505 Fixed default minimum switching time, wherein the default minimum switching time was less than for the described first default switching time.
Secondly, user can also configure the different time according to actual scene, that is, service in the embodiment of the present invention Before device generates state synchronized queue, server can determine for the first default switching time according to first time configuration-direct, and And default minimum switching time is determined according to the second time configuration-direct.By the above-mentioned means, can be matched according to different scenes Set corresponding switching time, wherein default switching time is to bring back to life countdown, and configuration brings back to life countdown being capable of the entire office of control The compactness of gesture.And minimum switching time can prevent some unreasonable situations from occurring, thus the feasibility of lifting scheme with Practicability.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 15, server 50 provided in an embodiment of the present invention In another embodiment,
The generation module 501 is specifically used for working as third role within the default minimum switching time from described first When state is switched to second state, the third state switching moment of the third role is obtained, wherein the third state At the time of indicating that the third role switches to second state from the first state when switching;
Switching time is preset according to target and the third state switching moment determines the third timestamp;
The third timestamp is added into the state synchronized queue, wherein the third timestamp corresponding second Object time is spaced the target and presets switching time between second object time and the first object moment, The state synchronized queue carries the role identification of the role to be synchronized;
The acquisition module 502 is also used to the generation when role to be synchronized is switched to the second state from first state After module 501 generates state synchronized queue, when obtaining the third of the third role from the state synchronized queue Between stab;
The switching module 503 is also used to according to the third timestamp in second object time, by described Three roles switch to the first state from second state.
Again, in the embodiment of the present invention, server detects that third role is within default minimum switching time from first When state is switched to the second state, the third state switching moment of third role is obtained, then server is cut according to target is default It changes the time and third state switching moment determines third timestamp, then third timestamp is added into state synchronized queue, take Business device obtains the third timestamp of third role from state synchronized queue, finally according to third timestamp in the second object time When, third role is switched into first state from the second state.By the above-mentioned means, certain role can be avoided the occurrence of will The case where falling in battle, then bring back to life immediately again when wave time is brought back to life is reached, to improve the reasonability of scheme, and closer to answering With the playing method of itself.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 15, server 50 provided in an embodiment of the present invention In another embodiment, the server 50 further includes receiving module 505 and determining module 506;
The receiving module 505 before generating state synchronized queue for the generation module 501, receives at the first time Configuration-direct;
The determining module 506, for being determined according to the received first time configuration-direct of the receiving module 505 The first default switching time;
The receiving module 505, is also used to receive third time configuration-direct;
The determining module 506 is also used to true according to the received first time configuration-direct of the receiving module 505 The fixed second default switching time, wherein when the duration of the first default switching time is greater than the described second default switching Between duration, or, the duration of the first default switching time be less than the described second default switching time duration.
Secondly, user can also configure the different time according to actual scene, that is, service in the embodiment of the present invention Before device generates state synchronized queue, server can determine for the first default switching time according to first time configuration-direct, and And the second default switching time was determined according to first time configuration-direct.By the above-mentioned means, can be matched according to different scenes Set corresponding switching time, wherein default switching time is to bring back to life countdown, and configuration brings back to life countdown being capable of the entire office of control The compactness of gesture, and play the role of controlling game rhythm in different scene of game, increase the spirit of scene of game Activity, so that further lifting scheme is operability.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 15, server 50 provided in an embodiment of the present invention In another embodiment,
The generation module 501 is specifically used for working as third role within the first default switching time from the first state When being switched to second state, the 4th state switching moment of the third role is obtained, wherein the 4th state switching At the time of moment indicates that the third role switches to second state from the first state;
The 4th timestamp is determined according to the 4th state switching moment;
4th timestamp is added into the state synchronized queue, wherein the 4th timestamp corresponds to third Object time, the third object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is greater than the duration of the described first default switching time;
The acquisition module 502 is also used to the generation when role to be synchronized is switched to the second state from first state After module 501 generates state synchronized queue, when obtaining the described 4th of the third role from the state synchronized queue Between stab;
The switching module 503, the 4th timestamp for being also used to be obtained according to the acquisition module 502 is described the When three object times, the third role is switched into the first state from second state.
Again, in the embodiment of the present invention, a kind of resurrection mode that common time section is entered from the urgent period is provided, I.e. when third role is switched to the second state from first state within the first default switching time, the 4th of third role is obtained Then state switching moment determines the 4th timestamp according to the first default switching time and the 4th state switching moment, then by the Four timestamps are added into state synchronized queue.Finally, server can obtain the of third role from state synchronized queue Four times, and according to the 4th timestamp in third object time, third role is switched into first state from the second state.It is logical Aforesaid way is crossed, can control the rhythm of interactive application, normal state is adjusted to from the state of emergency, reduces in game process Tension, and increase the flexibility ratio of scene.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 15, server 50 provided in an embodiment of the present invention In another embodiment,
The generation module 501 is specifically used for working as third role within the first default switching time from the first state When being switched to second state, the 5th state switching moment of the third role is obtained, wherein the 5th state switching When at the time of indicate that the third role switches to second state from the first state;
The 5th timestamp is determined according to the 5th state switching moment;
5th timestamp is added into the state synchronized queue, wherein the 5th timestamp the corresponding 4th Object time, the 4th object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is less than the duration of the described first default switching time;
The acquisition module 502 is also used to the generation when role to be synchronized is switched to the second state from first state After module 501 generates state synchronized queue, when obtaining the described 5th of the third role from the state synchronized queue Between stab;
The switching module 503, the 5th timestamp for being also used to be obtained according to the acquisition module 502 is described the When four object times, the third role is switched into the first state from second state.
Again, in the embodiment of the present invention, a kind of resurrection mode that crash time section is entered from common time section is provided, I.e. when third role is switched to the second state from first state within the first default switching time, the 5th of third role is obtained Then state switching moment determines the 5th timestamp according to the first default switching time and the 5th state switching moment, then by the Five timestamps are added into state synchronized queue.Finally, server can obtain the of third role from state synchronized queue Third role is switched to first state from the second state according to the 5th timestamp in four object times by five timestamps.It is logical Aforesaid way is crossed, can control the rhythm of interactive application, the state of emergency is adjusted to from normal state, is promoted in game process Tension enhances the interactive degree between player, and increases the flexibility ratio of scene.
The embodiment of the invention also provides another clients, as shown in figure 16, for ease of description, illustrate only and this The relevant part of inventive embodiments, it is disclosed by specific technical details, please refer to present invention method part.The terminal is set It include mobile phone, tablet computer, personal digital assistant (personal digital assistant, PDA), sale end for that can be Any terminal devices such as (point of sales, POS), vehicle-mounted computer are held, by taking terminal device is mobile phone as an example:
Figure 16 shows the block diagram of the part-structure of mobile phone relevant to terminal device provided in an embodiment of the present invention.Ginseng Figure 16 is examined, mobile phone includes: radio frequency (radio frequency, RF) circuit 610, memory 620, input unit 630, display list First 640, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) module 670, processor The components such as 680 and power supply 690.It will be understood by those skilled in the art that handset structure shown in Figure 16 does not constitute opponent The restriction of machine may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Figure 16 to mobile phone:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 680;In addition, the data for designing uplink are sent to base station.In general, RF circuit 610 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (low noise Amplifier, LNA), duplexer etc..In addition, RF circuit 610 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (global can be used in above-mentioned wireless communication System of mobile communication, GSM), general packet radio service (general packet radio Service, GPRS), CDMA (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), Email, short message service (short messaging service, SMS) etc..
Memory 620 can be used for storing software program and module, and processor 680 is stored in memory 620 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 620 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 620 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 630 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 630 may include that touch panel 631 and other inputs are set Standby 632.Touch panel 631, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 631 or near touch panel 631), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 631 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 680, and can receive order that processor 680 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 631.In addition to touch panel 631, input Unit 630 can also include other input equipments 632.Specifically, other input equipments 632 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 640 may include display panel 641, optionally, can use liquid crystal display (liquid crystal Display, LCD), the forms such as Organic Light Emitting Diode (organic light-emitting diode, OLED) it is aobvious to configure Show panel 641.Further, touch panel 631 can cover display panel 641, when touch panel 631 detect it is on it or attached After close touch operation, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 according to touch event Type corresponding visual output is provided on display panel 641.Although in Figure 16, touch panel 631 and display panel 641 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 631 and display panel 641 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 650, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 641, proximity sensor can close display panel 641 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, is turned after being received by voicefrequency circuit 660 It is changed to audio data, then by after the processing of audio data output processor 680, such as another mobile phone is sent to through RF circuit 610, Or audio data is exported to memory 620 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 670 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 16 is shown WiFi module 670, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 680 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 620, and call and be stored in memory 620 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 680 can wrap Include one or more processing units;Optionally, processor 680 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone further includes the power supply 690 (such as battery) powered to all parts, and optionally, power supply can pass through power supply pipe Reason system and processor 680 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 680 included by the terminal device is also with the following functions:
When first role is switched to the second state from first state, remaining switching time is obtained, wherein the residue is cut The time is changed less than or equal to default switching time, the first state indicates that vital values are greater than the state of vital values thresholding, described Second state indicates that the vital values are less than or equal to the state of the vital values thresholding;
Within the remaining switching time, second role is switched to second state from the first state, wherein institute It states second role and the first role belongs to same group;
In object time, the first role is switched into the first state from second state, and will be described Second role switches to the first state from second state, wherein the object time is the remaining switching time Finish time;
Show the first state of the first role and the first state of the second role.
Optionally, processor 680 is also used to execute following steps in the embodiment of the present invention:
It, will be corresponding to the first role when the first role is switched to second state from the first state Mark be switched to OFF state from illuminating state;
It, will be corresponding to the second role when the second role is switched to second state from the first state Mark be switched to the OFF state from the illuminating state;
It, will be corresponding to the first role when the first role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state;
It, will be corresponding to the second role when the second role is switched to the first state from second state Mark be switched to the illuminating state from the OFF state.
Optionally, processor 680 is also used to execute following steps in the embodiment of the present invention:
When the first role is switched to second state or the second role from described from the first state When one state is switched to second state, mark corresponding to group is switched to OFF state from illuminating state;
When the first role is switched to the first state or the second role from described from second state When two-state is switched to the first state, mark corresponding to group is switched to illuminating state from OFF state.
Optionally, processor 680 is also used to execute following steps in the embodiment of the present invention:
The remaining switching time is shown on interface.
Optionally, processor 680 is specifically used for executing following steps in the embodiment of the present invention:
The first state of the first role is shown on coordinates of targets point, and is shown on the coordinates of targets point The first state of the second role;
Alternatively,
The first state of the first role is shown in the first coordinate points, and in the second coordinate points described in display The first state of second role.
Figure 17 is a kind of server architecture schematic diagram provided in an embodiment of the present invention, which can be because of configuration or property Energy is different and generates bigger difference, may include one or more central processing units (central processing Units, CPU) 722 (for example, one or more processors) and memory 732, one or more storages apply journey The storage medium 730 (such as one or more mass memory units) of sequence 742 or data 744.Wherein, 732 He of memory Storage medium 730 can be of short duration storage or persistent storage.The program for being stored in storage medium 730 may include one or one With upper module (diagram does not mark), each module may include to the series of instructions operation in server.Further, in Central processor 722 can be set to communicate with storage medium 730, execute on server 700 a series of in storage medium 730 Instruction operation.
Server 700 can also include one or more power supplys 726, one or more wired or wireless networks Interface 750, one or more input/output interfaces 758, and/or, one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The step as performed by server can be based on server architecture shown in the Figure 17 in above-described embodiment.
In embodiments of the present invention, CPU 722 included by the server is also with the following functions:
When role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein the state Isochronous queue includes the timestamp of the role to be synchronized, wherein the timestamp be according to the first default switching time and What current time stamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, and second state indicates The vital values are less than or equal to the state of the vital values thresholding;
The first time stamp of first role is obtained from the state synchronized queue, wherein the first role belongs to institute Role to be synchronized is stated, the first time stabs the corresponding first object moment;
The second timestamp of second role is obtained from the state synchronized queue, wherein the second role belongs to institute Role to be synchronized is stated, and the second role and the first role belong to same group, described in second timestamp is corresponding The first object moment;
At the first object moment, the first role is switched into the first state from second state, And the second role is switched into the first state from second state.
Optionally, CPU 722 is also used to execute following steps in the embodiment of the present invention:
Role state synchronizing information is sent to client, so that the client is according to the role state synchronizing information, At the first object moment, the first role is switched into the first state from second state, and will be described Second role switches to the first state from second state.
Optionally, CPU 722 is specifically used for executing following steps in the embodiment of the present invention:
Obtain the first state switching moment of the first role, wherein the first state indicates described the when switching At the time of one role switches to second state from the first state;
Determine that the first time stabs according to the described first default switching time and the first state switching moment;
First time stamp is added into the state synchronized queue;
Obtain the second state switching moment of the second role, wherein second state indicates described the when switching At the time of two roles switch to second state from the first state;
Second timestamp is determined according to the described first default switching time and the second state switching moment;
Second timestamp is added into the state synchronized queue.
Optionally, CPU 722 is also used to execute following steps in the embodiment of the present invention:
Receive first time configuration-direct;
Determined for the described first default switching time according to the first time configuration-direct;
Receive the second time configuration-direct;
Default minimum switching time is determined according to the second time configuration-direct, wherein when the default minimum switching Between be less than the described first default switching time.
Optionally, CPU 722 is specifically used for executing following steps in the embodiment of the present invention:
When third role is switched to second state from the first state within the default minimum switching time, Obtain the third state switching moment of the third role, wherein the third state switch when indicate the third role from At the time of the first state switches to second state;
Switching time is preset according to target and the third state switching moment determines the third timestamp;
The third timestamp is added into the state synchronized queue, wherein the third timestamp corresponding second Object time is spaced the target and presets switching time between second object time and the first object moment, The state synchronized queue carries the role identification of the role to be synchronized;
CPU 722 is also used to execute following steps in the embodiment of the present invention:
The third timestamp of the third role is obtained from the state synchronized queue;
According to the third timestamp in second object time, the third role is cut from second state Shift to the first state.
Optionally, CPU 722 is also used to execute following steps in the embodiment of the present invention:
Receive first time configuration-direct;
Determined for the described first default switching time according to the first time configuration-direct;
Receive third time configuration-direct;
Determined for the described second default switching time according to the first time configuration-direct, wherein described first default cuts The duration for changing the time is greater than the duration of the described second default switching time, or, the duration of the first default switching time is less than The duration of the second default switching time.
Optionally, CPU 722 is specifically used for executing following steps in the embodiment of the present invention:
When third role is switched to second state from the first state within the first default switching time, obtain The 4th state switching moment of the third role, wherein the 4th state switching moment indicates the third role from institute At the time of stating first state and switch to second state;
The 4th timestamp is determined according to the 4th state switching moment;
4th timestamp is added into the state synchronized queue, wherein the 4th timestamp corresponds to third Object time, the third object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is greater than the duration of the described first default switching time;
CPU 722 is also used to execute following steps in the embodiment of the present invention:
The 4th timestamp of the third role is obtained from the state synchronized queue;
According to the 4th timestamp in the third object time, the third role is cut from second state Shift to the first state.
Optionally, CPU 722 is specifically used for executing following steps in the embodiment of the present invention:
When third role is switched to second state from the first state within the first default switching time, obtain The 5th state switching moment of the third role, wherein the 5th state indicates the third role from described when switching At the time of first state switches to second state;
The 5th timestamp is determined according to the 5th state switching moment;
5th timestamp is added into the state synchronized queue, wherein the 5th timestamp the corresponding 4th Object time, the 4th object time are the initial time of the described second default switching time, wherein described second default cuts The duration for changing the time is less than the duration of the described first default switching time;
CPU 722 is also used to execute following steps in the embodiment of the present invention:
The 5th timestamp of the third role is obtained from the state synchronized queue;
According to the 5th timestamp in four object time, the third role is cut from second state Shift to the first state.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (15)

1. a kind of synchronous method of role state characterized by comprising
When role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein the state synchronized Queue includes the timestamp of the role to be synchronized, wherein the timestamp is according to the first default switching time and currently What timestamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, described in the second state expression Vital values are less than or equal to the state of the vital values thresholding;
The first time stamp of first role is obtained from the state synchronized queue, wherein the first role belong to it is described to Synchronous role, the first time stab the corresponding first object moment;
The second timestamp of second role is obtained from the state synchronized queue, wherein the second role belong to it is described to Synchronous role, and the second role and the first role belong to same group, second timestamp corresponds to described first Object time;
At the first object moment, the first role is switched into the first state from second state, and will The second role switches to the first state from second state.
2. the method according to claim 1, wherein described switch the first role from second state To first state, and after the second role is switched to the first state from second state, the method is also wrapped It includes:
Role state synchronizing information is sent to client, so that the client is according to the role state synchronizing information, in institute When stating the first object moment, the first role is switched into the first state from second state, and by described second Role switches to the first state from second state.
3. the method according to claim 1, wherein the generation state synchronized queue, comprising:
Obtain the first state switching moment of the first role, wherein the first state switching moment indicates described first At the time of role switches to second state from the first state;
Determine that the first time stabs according to the described first default switching time and the first state switching moment;
First time stamp is added into the state synchronized queue;
Obtain the second state switching moment of the second role, wherein the second state switching moment indicates described second At the time of role switches to second state from the first state;
Second timestamp is determined according to the described first default switching time and the second state switching moment;
Second timestamp is added into the state synchronized queue.
4. the method according to claim 1, wherein the method is also before the generation state synchronized queue Include:
Receive first time configuration-direct;
Determined for the described first default switching time according to the first time configuration-direct;
Receive the second time configuration-direct;
Default minimum switching time is determined according to the second time configuration-direct, wherein the default minimum switching time is small In the described first default switching time.
5. according to the method described in claim 4, it is characterized in that, described be switched to second from first state as role to be synchronized When state, state synchronized queue is generated, comprising:
When third role is switched to second state from the first state within the default minimum switching time, obtain The third state switching moment of the third role, wherein the third state switching moment indicates the third role from institute At the time of stating first state and switch to second state;
Switching time is preset according to target and the third state switching moment determines the third timestamp;
The third timestamp is added into the state synchronized queue, wherein corresponding second target of the third timestamp Moment is spaced the target and presets switching time between second object time and the first object moment, described State synchronized queue carries the role identification of the role to be synchronized;
It is described when role to be synchronized is switched to the second state from first state, generate state synchronized queue after, the method Further include:
The third timestamp of the third role is obtained from the state synchronized queue;
According to the third timestamp in second object time, the third role is switched to from second state The first state.
6. the method according to claim 1, wherein the method is also before the generation state synchronized queue Include:
Receive first time configuration-direct;
Determined for the described first default switching time according to the first time configuration-direct;
Receive third time configuration-direct;
Determined for the described second default switching time according to the first time configuration-direct, wherein when the described first default switching Between duration be greater than the duration of the described second default switching time, or, the duration of the first default switching time be less than it is described The duration of second default switching time.
7. according to the method described in claim 6, it is characterized in that, described be switched to second from first state as role to be synchronized When state, state synchronized queue is generated, comprising:
When third role is switched to second state from the first state within the first default switching time, described in acquisition The 4th state switching moment of third role, wherein the 4th state switching moment indicates the third role from described the At the time of one state switches to second state;
The 4th timestamp is determined according to the 4th state switching moment;
4th timestamp is added into the state synchronized queue, wherein the 4th timestamp corresponds to third target Moment, the third object time are the initial time of the described second default switching time, wherein when the described second default switching Between duration be greater than the described first default switching time duration;
It is described when role to be synchronized is switched to the second state from first state, generate state synchronized queue after, the method Further include:
The 4th timestamp of the third role is obtained from the state synchronized queue;
According to the 4th timestamp in the third object time, the third role is switched to from second state The first state.
8. according to the method described in claim 6, it is characterized in that, described be switched to second from first state as role to be synchronized When state, state synchronized queue is generated, comprising:
When third role is switched to second state from the first state within the first default switching time, described in acquisition The 5th state switching moment of third role, wherein the 5th state indicates the third role from described first when switching At the time of state switches to second state;
The 5th timestamp is determined according to the 5th state switching moment;
5th timestamp is added into the state synchronized queue, wherein corresponding 4th target of the 5th timestamp Moment, the 4th object time are the initial time of the described second default switching time, wherein when the described second default switching Between duration be less than the described first default switching time duration;
It is described when role to be synchronized is switched to the second state from first state, generate state synchronized queue after, the method Further include:
The 5th timestamp of the third role is obtained from the state synchronized queue;
According to the 5th timestamp in four object time, the third role is switched to from second state The first state.
9. a kind of synchronous method of role state characterized by comprising
When first role is switched to the second state from first state, remaining switching time is obtained, wherein when the remaining switching Between be less than or equal to default switching time, the first state indicates that vital values are greater than the state of vital values thresholding, described second State indicates that the vital values are less than or equal to the state of the vital values thresholding;
Within the remaining switching time, second role is switched to second state from the first state, wherein described the Two roles and the first role belong to same group;
In object time, the first role is switched into the first state from second state, and by described second Role switches to the first state from second state, wherein the object time is the knot of the remaining switching time The beam moment;
Show the first state of the first role and the first state of the second role.
10. according to the method described in claim 9, it is characterized in that, the method also includes:
When the first role is switched to second state from the first state, by mark corresponding to the first role Know from illuminating state and is switched to OFF state;
When the second role is switched to second state from the first state, by mark corresponding to the second role Know from the illuminating state and is switched to the OFF state;
When the first role is switched to the first state from second state, by mark corresponding to the first role Know from the OFF state and is switched to the illuminating state;
When the second role is switched to the first state from second state, by mark corresponding to the second role Know from the OFF state and is switched to the illuminating state.
11. according to the method described in claim 9, it is characterized in that, the method also includes:
When the first role is switched to second state or the second role from first shape from the first state When state is switched to second state, mark corresponding to group is switched to OFF state from illuminating state;
When the first role is switched to the first state or the second role from second shape from second state When state is switched to the first state, mark corresponding to group is switched to illuminating state from OFF state.
12. according to the method described in claim 9, it is characterized in that, the method is also after acquisition residue switching time Include:
The remaining switching time is shown on interface.
13. the method according to any one of claim 9 to 12, which is characterized in that the display first role Second state of second state and the second role, comprising:
The first state of the first role is shown on coordinates of targets point, and on the coordinates of targets point described in display The first state of second role;
Alternatively,
The first state of the first role is shown in the first coordinate points, and described second is shown in the second coordinate points The first state of role.
14. a kind of server characterized by comprising memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
When role to be synchronized is switched to the second state from first state, state synchronized queue is generated, wherein the state synchronized Queue includes the timestamp of the role to be synchronized, wherein the timestamp is according to the first default switching time and currently What timestamp generated, the first state indicates that vital values are greater than the state of vital values thresholding, described in the second state expression Vital values are less than or equal to the state of the vital values thresholding;
The first time stamp of first role is obtained from the state synchronized queue, wherein the first role belong to it is described to Synchronous role, the first time stab the corresponding first object moment;
The second timestamp of second role is obtained from the state synchronized queue, wherein the second role belong to it is described to Synchronous role, and the second role and the first role belong to same group, second timestamp corresponds to described first Object time;
At the first object moment, the first role is switched into the first state from second state, and will The second role switches to the first state from second state;
The bus system is for connecting the memory and the processor, so that the memory and the processor It is communicated.
15. a kind of terminal device characterized by comprising memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
When first role is switched to the second state from first state, remaining switching time is obtained, wherein when the remaining switching Between be less than or equal to default switching time, the first state indicates that vital values are greater than the state of vital values thresholding, described second State indicates that the vital values are less than or equal to the state of the vital values thresholding;
Within the remaining switching time, second role is switched to second state from the first state, wherein it is described Second role and the first role belong to same group;
In object time, the first role is switched into the first state from second state, and by described second Role switches to the first state from second state, wherein the object time is the knot of the remaining switching time The beam moment;
Show the first state of the first role and the first state of the second role;
The bus system is for connecting the memory and the processor, so that the memory and the processor It is communicated.
CN201910031615.3A 2019-01-14 2019-01-14 Role state synchronization method and related device Active CN109758766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910031615.3A CN109758766B (en) 2019-01-14 2019-01-14 Role state synchronization method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910031615.3A CN109758766B (en) 2019-01-14 2019-01-14 Role state synchronization method and related device

Publications (2)

Publication Number Publication Date
CN109758766A true CN109758766A (en) 2019-05-17
CN109758766B CN109758766B (en) 2021-10-22

Family

ID=66453994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910031615.3A Active CN109758766B (en) 2019-01-14 2019-01-14 Role state synchronization method and related device

Country Status (1)

Country Link
CN (1) CN109758766B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110841289A (en) * 2019-10-30 2020-02-28 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic device
CN111672110A (en) * 2020-05-28 2020-09-18 腾讯科技(深圳)有限公司 Control method, device, storage medium and equipment for virtual role in virtual world
WO2024051372A1 (en) * 2022-09-06 2024-03-14 腾讯科技(深圳)有限公司 Synchronous role display method and apparatus, and device, storage medium and program product

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651742A (en) * 2011-02-23 2012-08-29 株式会社都比克 Massively mutliplayer online first person shooting game service system and method
US20140087836A1 (en) * 2012-09-21 2014-03-27 Square Enix Co., Ltd. Game apparatus and game system
CN104346507A (en) * 2013-07-30 2015-02-11 玩酷科技股份有限公司 Method allowing in-game characters to revive through completing tasks
CN105117296A (en) * 2015-09-11 2015-12-02 网易(杭州)网络有限公司 Method and system for synchronizing states of objects in game
CN106385408A (en) * 2016-09-01 2017-02-08 网易(杭州)网络有限公司 Motion state changing indication and processing method and device
CN106730827A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 Method and terminal device that a kind of object shows
CN107423015A (en) * 2017-07-24 2017-12-01 腾讯科技(深圳)有限公司 The synchronous display method and device of game content
CN107537156A (en) * 2017-08-28 2018-01-05 深圳市乐易网络股份有限公司 Non-player role method for refreshing, device and server
CN108057243A (en) * 2017-11-29 2018-05-22 腾讯科技(深圳)有限公司 Data display method and device, storage medium and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651742A (en) * 2011-02-23 2012-08-29 株式会社都比克 Massively mutliplayer online first person shooting game service system and method
US20140087836A1 (en) * 2012-09-21 2014-03-27 Square Enix Co., Ltd. Game apparatus and game system
CN104346507A (en) * 2013-07-30 2015-02-11 玩酷科技股份有限公司 Method allowing in-game characters to revive through completing tasks
CN105117296A (en) * 2015-09-11 2015-12-02 网易(杭州)网络有限公司 Method and system for synchronizing states of objects in game
CN106385408A (en) * 2016-09-01 2017-02-08 网易(杭州)网络有限公司 Motion state changing indication and processing method and device
CN106730827A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 Method and terminal device that a kind of object shows
CN107423015A (en) * 2017-07-24 2017-12-01 腾讯科技(深圳)有限公司 The synchronous display method and device of game content
CN107537156A (en) * 2017-08-28 2018-01-05 深圳市乐易网络股份有限公司 Non-player role method for refreshing, device and server
CN108057243A (en) * 2017-11-29 2018-05-22 腾讯科技(深圳)有限公司 Data display method and device, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
178: ""新公会***:可升级有天赋还有群体复活"", 《HTTP://WOW.178.COM/200908/45003404135.HTML》 *
GAMERES游资网: ""从《魔兽世界》的战场中,看如何设计一个N对N的多人战斗"", 《HTTPS://WWW.SOHU.COM/A/204556474_483399》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110841289A (en) * 2019-10-30 2020-02-28 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic device
CN111672110A (en) * 2020-05-28 2020-09-18 腾讯科技(深圳)有限公司 Control method, device, storage medium and equipment for virtual role in virtual world
CN111672110B (en) * 2020-05-28 2021-06-18 腾讯科技(深圳)有限公司 Control method, device, storage medium and equipment for virtual role in virtual world
WO2024051372A1 (en) * 2022-09-06 2024-03-14 腾讯科技(深圳)有限公司 Synchronous role display method and apparatus, and device, storage medium and program product

Also Published As

Publication number Publication date
CN109758766B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN106559426B (en) A kind of data processing method and server and client based on frame synchronization
CN111773696B (en) Virtual object display method, related device and storage medium
KR102319206B1 (en) Information processing method and device and server
CN106693367B (en) Processing method for displaying data at client, server and client
CN105879391B (en) The control method for movement and server and client of role in a kind of game
CN109550244A (en) A kind of method and relevant apparatus of role state switching
CN109758766A (en) A kind of method and relevant apparatus that role state is synchronous
CN110559663B (en) Display control method and device for virtual rounds in game
CN108379834B (en) Information processing method and related equipment
CN111686447B (en) Method and related device for processing data in virtual scene
CN106422325B (en) A kind of method and mobile terminal of data interaction
CN113018848B (en) Game picture display method, related device, equipment and storage medium
CN108965989B (en) Processing method and device for interactive application scene and storage medium
CN114344892B (en) Data processing method and related device
CN110433487A (en) A kind of method and relevant apparatus of traffic resource assignment
CN113082688B (en) Method and device for controlling virtual character in game, storage medium and equipment
CN110166519A (en) A kind of method and relevant apparatus of synchronizing information
CN110166848A (en) A kind of method of living broadcast interactive, relevant apparatus and system
CN110124321A (en) A kind of object processing method, device, equipment and medium
CN112044072A (en) Interaction method of virtual objects and related device
CN110743167A (en) Method and device for realizing interactive function
WO2019085825A1 (en) Health control method based on simulation object, and client
CN108924632A (en) A kind for the treatment of method and apparatus and storage medium of interactive application scene
CN109857363A (en) A kind of method and relevant apparatus of audio broadcasting
WO2024098984A1 (en) Virtual-prop control method and apparatus, and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant