CN106606865A - Game data intercommunicating method, game data intercommunicating system, terminals and servers - Google Patents
Game data intercommunicating method, game data intercommunicating system, terminals and servers Download PDFInfo
- Publication number
- CN106606865A CN106606865A CN201510706949.8A CN201510706949A CN106606865A CN 106606865 A CN106606865 A CN 106606865A CN 201510706949 A CN201510706949 A CN 201510706949A CN 106606865 A CN106606865 A CN 106606865A
- Authority
- CN
- China
- Prior art keywords
- computer
- mobile terminal
- server
- terminal
- fight
- 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
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/10—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
- A63F2300/1025—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals details of the interface with the game device, e.g. USB version detection
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/40—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
- A63F2300/402—Communication between platforms, i.e. physical link to protocol
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/57—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
- A63F2300/572—Communication between players during game play of non game information, e.g. e-mail, chat, file transfer, streaming of audio and streaming of video
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a game data intercommunicating method and system for a computer terminal and a mobile terminal. The method comprises the steps that the association relationship of a computer terminal server and a mobile terminal server is built; when a user logs in the computer terminal through a game account to build the connection with the computer terminal server, whether the mobile terminal builds the connection with the mobile terminal server through the same game account or not is judged; if the mobile terminal does not build connection with the mobile terminal server, the computer terminal server sends game data to the computer terminal; and if the mobile terminal and the mobile terminal server build connection, the mobile terminal server disconnects the communication with the mobile terminal, and the computer terminal server sends game data to the computer terminal. Meanwhile, the invention also provides the game data intercommunicating system for realizing the method.
Description
Technical field
The present invention relates to a kind of data interchange method of computer terminal and mobile terminal, particularly a kind of computer terminal and mobile terminal
The method of data interchange in game;The invention further relates to a kind of system for realizing said method.
Background technology
Current phone game is more next universal, and player is also more and more.Existing most of game can be operated in computer terminal,
Can also be operated in mobile phone terminal.However, existing computer end game and mobile phone terminal game are separate when fighting
Two game, it is impossible to carry out intercommunication.When player logs in computer end, the connection set up between computer end and server, by taking
Business device sends game data to computer end, and by computer end and server data interchange is carried out.And now when mobile terminal logs in,
Set up by mobile terminal and the connection between server, game data is sent to mobile terminal by server, by mobile terminal and server
Carry out data interchange.Because computer end and mobile terminal are all individually to set up to be connected with server, data separately are requested, therefore when electricity
When brain end is played, if being logged in by mobile terminal, the game data between computer end and server cannot be transmitted immediately
To mobile terminal, now, mobile terminal needs to set up with server again and is connected, and carries out data interchange.
Such as:Play when player plays in computer end, if needs of being then in a hurry go out to wait, need to leave computer.And if now
Player just when fighting in forming a team, then needs termination to form a team, it is impossible to is further continued for fight, so have impact on the game body of player
Test.Even if now being logged in by mobile terminal, also former combat data cannot be transferred to mobile terminal, can only be formed a team again,
Restart new fight.
Further, since cannot communicate with the game data of computer end in the fight that mobile phone terminal is carried out, it is impossible at the same carry out chat and
Technical ability is controlled, and have impact on experience of the player in game operation.Such as:When player is fought in computer end, with teammate or
The chat conversations of other players, it is impossible to which instantaneous transmission is to mobile terminal.And when now being logged in by mobile terminal, then cannot pass through
Continue originally in the chat of computer end mobile terminal.Meanwhile, when the fight technical ability control carried out in computer end, due to combat data
Cannot instantaneous transmission to mobile terminal, therefore when mobile terminal logs in, also cannot just take over game, while carry out technical ability control, only
New fight can be reopened.
If conversely, when initially being logged in by mobile terminal, being fought in mobile terminal.When mobile terminal is broken down or other reasonses,
Player is needed when computer end is logged in, then can only re-start in computer end and form a team, and starts new fight.If in the war of mobile terminal
At the end of struggling against not, can only now terminate original fight, it is impossible to by the original combat data of computer pipe nipple.Thus, can be serious
Have impact on the experience of player.
The content of the invention
The invention reside in overcoming the shortcoming and deficiency of prior art, there is provided data interchange in a kind of computer terminal and game of mobile terminal
Method and system.
The present invention is realized by following technical scheme:A kind of method of data interchange in computer terminal and game of mobile terminal,
Including:
Set up the incidence relation of computer end server and mobile terminal server;And computer terminal is carried out when logging in computer end server
Data interaction;Data interaction is carried out by mobile terminal server and computer end server when mobile terminal is logged in;
When user is logged in by GID in computer terminal, sets up the connection for arriving the computer end server, judgement is mobile eventually
Whether end is set up by identical GID with mobile terminal server is connected;
If mobile terminal is not set up with mobile terminal server being connected, game data is sent to computer terminal by computer end server;
If mobile terminal is set up with mobile terminal server being connected, mobile terminal server disconnects and being connected with the communication of mobile terminal, and
Game data is sent to computer terminal by computer end server.
Compared to prior art, the present invention is respectively used to and computer terminal and shifting using computer end server and mobile terminal server
Dynamic terminal carries out data interchange.And, computer end server and mobile terminal server are set up into incidence relation.In the ban by mobile whole
When end is logged in, game data forwarding is carried out by mobile terminal server by mobile terminal, make mobile terminal and computer end service
Device carries out data interchange.And when now computer terminal logs in, set up the connection with computer end server, now computer end service
Device first passes through mobile terminal server and disconnects connection with mobile terminal, then directly original mobile terminal is stored in into computer end server
Game data send computer terminal, so as to computer terminal can take over the game of original mobile terminal.Therefore, even if when movement
Terminal is when being fought, it is also possible to combat data is sent to computer terminal by computer end server, so that player is not used in
Computer terminal is formed a team again, can continue original unclosed fight.Therefore, by the present invention in that computer end and mobile phone end data
Intercommunication, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication etc., certain hour of the player in more exchange device
The state of forming a team on interior holding backstage, reaches the standard grade still in offline front troop after disconnection.
As a further improvement on the present invention, when user is logged in by GID in computer terminal, set up to computer end clothes
During the connection of business device, also include:
Judge whether other computer terminals are set up by identical GID with computer end server to be connected;
If other computer terminals are not set up with computer end server being connected, game data is sent to the electricity by computer end server
Brain terminal;
If other computer terminals are set up with computer end server being connected, computer end server disconnects the communication with other computer terminals
Connection, and game data is sent to the computer terminal by computer end server.The present invention is further by other computer terminals
Detected, can prevent multiple computers terminal simultaneously from being logged in using same GID.
As a further improvement on the present invention, it is described set up computer end server and mobile terminal server incidence relation the step of in,
Specifically include:
Global association table is set up, its record preserves the incidence relation of computer end server and mobile terminal server, and is stored in HTTP
In server;
When computer end startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches mobile terminal server corresponding with the computer end server, and sets up connection;
When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
The present invention further uses HTTP server, and the incidence relation of computer end server and mobile terminal server is preserved,
Portable computer end server or mobile terminal server on startup, can quickly set up the connection of corresponding server.
As a further improvement on the present invention, it is described to judge mobile terminal whether by identical GID and mobile terminal server
In the step of setting up connection, specifically include:
Computer end server access mobile terminal server, judges now whether mobile terminal passes through institute by the mobile terminal server
State GID and set up with mobile terminal server and be connected;
Mobile terminal server will determine that result feeds back to computer end server.
As a further improvement on the present invention, the step of computer end server sends game data to computer terminal, concrete bag
Include:
Judge now whether user is fought in computer terminal, if so, then computer end server allows user to enter the fight protection period,
And by AI system adapter combat actions;If it is not, then sending log-on message to computer terminal by computer end server;
Whether computer end server checks user in the fight protection period, and if so, then computer end server sends out fight field data
Computer terminal is delivered to, fight scene is recovered in the computer terminal according to the field data for receiving, and sends fight control data to electricity
Brain end server;If it is not, being then done directly login.
Further by the present invention in that being fought with AI systems (intelligence system) adapter, player can be efficiently solved by mobile whole
When end switches to computer terminal, it is impossible to carry out the defect of real-time operation.When player logs in computer terminal, then by player in electricity
Brain terminal proceeds game operation.
Present invention also offers another embodiment:A kind of method of data interchange in computer terminal and game of mobile terminal, bag
Include:
Set up the incidence relation of computer end server and mobile terminal server;And computer terminal is carried out when logging in computer end server
Data interaction;Data interaction is carried out by Mobile Server and computer end server when mobile terminal is logged in;
When user is logged in by GID in mobile terminal, sets up the connection for arriving the mobile terminal server, computer end is judged
Whether end is set up by identical GID with computer end server is connected;
If computer terminal is not set up with computer end server being connected, game data is sent by computer end server and is serviced to mobile terminal
Device, then mobile terminal is forwarded to by mobile terminal server;
If computer terminal is set up with computer end server being connected, computer end server disconnects and being connected with the communication of computer terminal, and
Game data is sent to mobile terminal server, then game data is forwarded to into mobile terminal by mobile terminal server.
Compared to prior art, the present invention is respectively used to and computer terminal and shifting using computer end server and mobile terminal server
Dynamic terminal carries out data interchange.And, computer end server and mobile terminal server are set up into incidence relation.In the ban by computer end
When end is logged in, data interchange is carried out by computer terminal and computer end server.And when now mobile terminal is logged in, set up
With the connection of mobile terminal server, now computer end server first disconnect the connection with computer terminal, then directly by original computer end
End is stored in the game data of computer end server and is forwarded to mobile terminal by mobile terminal server, so as to mobile terminal can connect
Manage the game of original computer terminal.Therefore, even if when computer terminal is when being fought, it is also possible to will be fought by computer end server
Bucket data is activation is to mobile terminal, so that player is not used in mobile terminal and forms a team again, can continue original unclosed fight.
Therefore, by the present invention in that computer end and mobile phone terminal data interchange, including combat data intercommunication, animation intercommunication, operation intercommunication,
Chat intercommunication etc., player keeps the state of forming a team on backstage in the certain hour of more exchange device, reaches the standard grade after disconnection still in before offline
Troop in.
As a further improvement on the present invention, when user is logged in by GID in mobile terminal, set up to mobile terminal clothes
During the connection of business device, also include:
Judge whether other mobile terminals are set up by identical GID with mobile terminal server to be connected;
If other mobile terminals are not set up with mobile terminal server being connected, mobile terminal service is sent data to by computer end server
Device, then mobile terminal is forwarded to by mobile terminal server;
If other mobile terminals are set up with mobile terminal server being connected, mobile terminal server disconnects the communication with other mobile terminals
Connection, and game data is sent to the mobile terminal by mobile terminal server.
The present invention can prevent multiple stage mobile terminal simultaneously from using same further by detecting to other mobile terminals
GID is logged in.
As a further improvement on the present invention, it is described set up computer end server and mobile terminal server incidence relation the step of in,
Specifically include:
Global association table is set up, record preserves the incidence relation of computer end server and mobile terminal server, and is stored in HTTP
In server;
When computer end startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches mobile terminal server corresponding with the computer end server, and sets up connection;
When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
Global association table is preserved by HTTP server, Portable computer end server and mobile terminal server on startup can be fast
Corresponding server is looked in quick checking, quickly sets up incidence relation.
As a further improvement on the present invention, it is described to judge computer terminal whether by identical GID and computer end server
In the step of setting up connection, specifically include:
Mobile terminal server access computer end server, judges now whether computer terminal passes through institute by the computer end server
State GID and set up with computer end server and be connected;
Computer end server will determine that result feeds back to mobile terminal server.
As a further improvement on the present invention, the computer end server disconnects and being connected with the communication of computer terminal, and by number of playing
The step of according to sending to mobile terminal server, then mobile terminal being forwarded to by mobile terminal server, specifically include:
Judge now whether user is fought in computer terminal, if so, then computer end server allows user to enter the fight protection period,
And by AI system adapter combat actions;If it is not, then log-on message is sent to mobile terminal server by computer end server, and by moving
Log-on message is forwarded to mobile terminal by moved end server;
Whether computer end server checks user in the fight protection period, and if so, then computer end server sends out fight field data
Mobile terminal server is delivered to, and mobile terminal is forwarded to by mobile terminal server, the mobile terminal is according to the field data for receiving
Recover fight scene, and send fight control data to mobile terminal server, and computer end service is forwarded to by mobile terminal server
Device;If it is not, being then done directly login.
Further by using AI systems, player's adapter game can be helped when player switches equipment.And work as player and moving
During terminal logs in, game is proceeded by player.
Present invention also offers data interchange system in a kind of computer end and mobile terminal game, including computer end server end, computer
Terminal, mobile terminal server end and mobile terminal;
The computer end server end, including:
Log-on message receiver module, for receiving the landing request information of computer terminal;
Judge request module, for sending solicited message to mobile terminal server end, ask the mobile terminal server end to judge institute
Mobile terminal is stated whether by using the connection set up with computer terminal identical GID with the mobile terminal server end;
Judged result receiving processing module, for receiving the judged result of mobile terminal server end;When the mobile terminal not with shifting
Moved end server end sets up connection, then by transmission game data to computer terminal;When mobile terminal and mobile terminal server end are set up
Connection, then send and disconnect request to mobile terminal server end, and request mobile terminal server end disconnects and being connected with the communication of mobile terminal,
And game data is sent to computer terminal;
The computer terminal, including:
Logging request module, for sending landing request information to computer end server end;
Data reception module, for receiving the game data information of computer end server end transmission;
The mobile terminal server end, including:
Judge request receiving module, for receiving the judgement solicited message of computer end server end, and whether mobile terminal is passed through
Using being judged with computer terminal identical GID;
Judged result sending module, for the judged result of the judgement request module to be sent to computer end server end;
Request receiving processing module is disconnected, for receiving the disconnection solicited message of computer end server end, and is disconnected and mobile terminal
Communication connection.
It is of the invention by the landing request information in computer end received server-side computer terminal compared to prior art, and accordingly
Determine whether that identical account is logged in mobile terminal.If having, the connection of mobile terminal is disconnected, and game data is sent
To computer terminal, played by computer terminal adapter.And if mobile terminal is not logged on, can directly be logged in by computer terminal,
Start new game, carry out new fight.
As a further improvement on the present invention, the computer end server end also includes:Judge module is logged in, for leading to as user
Cross GID to log in computer terminal, when setting up the connection for arriving the computer end server end, whether judge other computer terminals
Set up with computer end server end by identical GID and be connected;
Log in judged result processing module, for receive log in judge module judged result, if other computer terminals not with computer
End server end sets up connection, then send game data to the computer terminal;If other computer terminals and computer end server end
Connection is set up, is then disconnected and being connected with the communication of other computer terminals, and send game data to the computer terminal.
Further, by logging in judge module, it can be determined that whether there is other computer terminals to be logged in using identical account,
Such that it is able to prevent while there is the situation that two computers terminal is logged in.
As a further improvement on the present invention, also including a HTTP server end;The HTTP server end, for passing through
Global association table, record preserves the incidence relation of computer end server end and mobile terminal server end;
When the computer end server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
As a further improvement on the present invention, the computer end server end also includes:
Fight judge module, for when computer end server end sends game data to computer terminal, judging user whether in electricity
Brain terminal is fought;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer
End server end sends log-on message to computer terminal;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server end by fight field data send to computer terminal;Otherwise, then it is done directly login;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and the control right transfer that will fight
To computer terminal.
The computer terminal also includes:
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to computer end server end.
Present invention also offers a kind of computer end server end, including:
Log-on message receiver module, for receiving the landing request information of computer terminal;
Judge request module, for sending solicited message to mobile terminal server end, ask the mobile terminal server end to judge institute
Mobile terminal is stated whether by using the connection set up with computer terminal identical GID with the mobile terminal server end;
Judged result receiving processing module, for receiving the judged result of mobile terminal server end;When the mobile terminal not with shifting
Moved end server end sets up connection, then by transmission game data to computer terminal;When mobile terminal and mobile terminal server end are set up
Connection, then send and disconnect request to mobile terminal server end, and request mobile terminal server end disconnects and being connected with the communication of mobile terminal,
And game data is sent to computer terminal.
As a further improvement on the present invention, also including judge module is logged in, for passing through GID in computer terminal as user
Log in, when setting up the connection to the computer end server end, judge other computer terminals whether by identical GID with
Computer end server end sets up connection;
Log in judged result processing module, for receive log in judge module judged result, if other computer terminals not with computer
End server end sets up connection, then send game data to the computer terminal;If other computer terminals and computer end server end
Connection is set up, is then disconnected and being connected with the communication of other computer terminals, and send game data to the computer terminal.
As a further improvement on the present invention, also including fight judge module, for sending game data when computer end server end
During to computer terminal, judge whether user is fought in computer terminal;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer
End server end sends log-on message to computer terminal;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server end by fight field data send to computer terminal;Otherwise, then it is done directly login;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and the control right transfer that will fight
To computer terminal.
Present invention also offers a kind of computer terminal of games system, including logging request module, for sending landing request information
To computer end server end;
Data reception module, for receiving the game data information of computer end server end transmission;
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to computer end server end.
Present invention also offers in another computer terminal and game of mobile terminal data interchange system, including computer end service
Device end, computer terminal, mobile terminal server end and mobile terminal;
The mobile terminal server end, including:
Log-on message receiver module, for receiving the landing request information of mobile terminal;
Judge request module, for sending solicited message to computer end server end, ask the computer end server end to judge institute
Computer terminal is stated whether by using the connection set up with mobile terminal identical GID with the computer end server end;
Judged result receiving processing module, for receiving the judged result of computer end server end;When computer terminal not with computer end
Server end sets up connection, then asked to computer end server end by transmission game data;If computer terminal and computer end server
Connection is set up at end, then send and disconnect request to computer end server end, and request computer end server end disconnects and computer terminal
Communication connection, and game data is asked to computer end server end;
Game data reception module, for receiving the game data of computer end server end;
Game data sending module, for the game data of game data reception module to be forwarded to into the mobile terminal;
The mobile terminal, including:
Logging request module, for sending landing request information to mobile terminal server end;
Data reception module, for receiving the game data information that mobile terminal server end sends;
The computer end server end, including:
Judge request receiving module, for receiving the judgement solicited message of mobile terminal server end, and whether computer terminal is passed through
Using being judged with mobile terminal identical GID;
Judged result sending module, for the judged result of the judgement request module to be sent to mobile terminal server end;
Request receiving processing module is disconnected, for receiving the disconnection solicited message of mobile terminal server end, and is disconnected and computer terminal
Communication connection;
Data transmission blocks, for according to the request of data of mobile terminal server end, sending game data to mobile terminal server end.
It is of the invention by the landing request information in mobile terminal received server-side mobile terminal compared to prior art, and by electricity
Brain end server end accordingly determines whether that identical account is logged in computer terminal.If having, the connection of mobile terminal is disconnected,
And game data is sent to mobile terminal, played by mobile terminal adapter.And if computer terminal is not logged on, can be by moving
Dynamic terminal is directly logged in, and starts new game, carries out new fight.It is thus possible to when computer terminal is fought, can be with
Continue original fight from mobile terminal, without forming a team again.
As a further improvement on the present invention, the mobile terminal server end also includes:
Judge module is logged in, for being logged in mobile terminal by GID as user, is set up to the mobile terminal server end
Connection when, judge that whether other mobile terminals are connected by identical GID with the foundation of mobile terminal server end;
Log in judged result processing module, for receive log in judge module judged result, if other mobile terminals not with movement
End server end sets up connection, then send game data and ask to computer end server end;If other mobile terminals take with mobile terminal
Connection is set up at business device end, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer end server
End.
As a further improvement on the present invention, also including a HTTP server end;The HTTP server end, for passing through
Global association table, record preserves the incidence relation of computer end server end and mobile terminal server end;
When the computer end server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
As a further improvement on the present invention, the computer server also includes:
Fight judge module, for when computer end server end sends game data to Mobile Server, judging that whether user exists
Fought computer terminal;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer
End server end sends log-on message to mobile terminal server end;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server end by fight field data send to mobile terminal server end;Otherwise, log-on message is sent to movement
End server end;The mobile terminal server end by data transmission blocks sends the fight field data for receiving to movement eventually
End;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and fight control Jing is moved
Moved end server end is transferred to mobile terminal;
The mobile terminal also includes:
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to mobile terminal server end, and by the mobile terminal server
End is sent to computer end server end.
Present invention also offers a kind of mobile terminal server end of games system, including:
Log-on message receiver module, for receiving the landing request information of mobile terminal;
Judge request module, for sending solicited message to computer end server end, ask the computer end server end to judge institute
Computer terminal is stated whether by using the connection set up with mobile terminal identical GID with the computer end server end;
Judged result receiving processing module, for receiving the judged result of computer end server end;When computer terminal not with computer end
Server end sets up connection, then asked to computer end server end by transmission game data;If computer terminal and computer end server
Connection is set up at end, then send and disconnect request to computer end server end, and request computer end server end disconnects and computer terminal
Communication connection, and game data is asked to computer end server end;
Game data reception module, for receiving the game data of computer end server end;
Game data sending module, for the game data of game data reception module to be forwarded to into the mobile terminal.
As a further improvement on the present invention, also include:
Judge module is logged in, for being logged in mobile terminal by GID as user, is set up to the mobile terminal server end
Connection when, judge that whether other mobile terminals are connected by identical GID with the foundation of mobile terminal server end;
Log in judged result processing module, for receive log in judge module judged result, if other mobile terminals not with movement
End server end sets up connection, then send game data and ask to computer end server end;If other mobile terminals take with mobile terminal
Connection is set up at business device end, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer end server
End.
Present invention also offers a kind of mobile terminal of games system, including:
Logging request module, for sending landing request information to mobile terminal server end;
Data reception module, for receiving the game data information that mobile terminal server end sends;
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to mobile terminal server end, and by the mobile terminal server
End is sent to computer end server end.
As a further improvement on the present invention, also include:
Fight parsing module, for parsing received fight protocol data;
Fight logic module, for by fight agreement, order to be performed in the form of queue, fight animation is broadcast in units of bout
Put.
As a further improvement on the present invention, also it is divided into for mobile terminal display screen curtain including region division display module:
Battle field, chat area and feature operation region.
In order to more fully understand and implement, the present invention is described in detail below in conjunction with the accompanying drawings.
Description of the drawings
Fig. 1 is the method and step flow chart of data interchange in the computer terminal of embodiment 1 and game of mobile terminal.
Fig. 2 is computer end server realizes flow chart of steps with mobile terminal server sets up incidence relation.
The step of Fig. 3 is the method for data interchange in the computer terminal of embodiment 2 and game of mobile terminal flow chart.
Fig. 4 is that the computer end server of the present embodiment 2 sends game data to flow chart the step of computer terminal.
Fig. 5 is the connection diagram of data interchange system in the computer end of the present invention and mobile terminal game.
Fig. 6 is the inside connection diagram of computer terminal and mobile terminal data intercommunicating system.
Fig. 7 is the internal module connection diagram of computer end server.
Fig. 8 is the internal module connection diagram of computer terminal.
The step of Fig. 9 is the method for data interchange in the computer terminal of the present embodiment 3 and game of mobile terminal flow chart.
Figure 10 is computer end server realizes flow chart of steps with mobile terminal server sets up incidence relation.
The step of Figure 11 is the method for data interchange in the computer terminal of embodiment 4 and game of mobile terminal flow chart.
Figure 12 is the step of computer end server of the present invention sends game data mobile terminal flow chart.
Figure 13 is the system connection diagram of the computer terminal of the present embodiment 4 and game of mobile terminal data interchange.
Figure 14 is the system module connection diagram of data interchange in the computer terminal of the present embodiment 4 and game of mobile terminal.
Figure 15 is the screen area display renderings of mobile terminal.
Specific embodiment
Embodiment 1
The present invention cannot realize the data interchange of computer terminal and mobile terminal to solve player in game process.Such as, when
Player is logged in mobile terminal, is now set up with mobile terminal server by mobile terminal and is connected, and is serviced by the mobile terminal
The game data of mobile terminal is forwarded to computer end server by device, realizes that the data between mobile terminal and computer end server are mutual
It is logical.When player is fought in mobile terminal, if card machine or other failures occurs in mobile terminal, player may be needed using electricity
Brain terminal is logged in, if mobile terminal is directly exited, cannot retain original combat data, and player cannot continue to participate in former
The fight for coming.
Therefore, for this situation, the present embodiment 1 provides a kind of solution, below for computer terminal and mobile terminal
The method of data interchange is specifically described in game.
Fig. 1 is referred to, it is the method and step flow chart of data interchange in the computer terminal of the present invention and game of mobile terminal.This
The method that invention provides data interchange in a kind of computer terminal and game of mobile terminal, comprises the following steps:
S11:Set up the incidence relation of computer end server and mobile terminal server.
Please refer to Fig. 2, it is computer end server realizes flow chart of steps with mobile terminal server sets up incidence relation.
When computer end server and mobile terminal server is set up, following steps are specifically included:
S111:Global association table is set up, record preserves the incidence relation of computer end server and mobile terminal server, and is stored in
In HTTP server.
S112:When computer end startup of server, global association table is downloaded from the HTTP server, and by described complete
Office's contingency table, searches mobile terminal server corresponding with the computer end server, and sets up connection.
S113:When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by described complete
Office's contingency table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
S12:When user is logged in by GID in computer terminal, sets up the connection for arriving the computer end server, judge to move
Whether dynamic terminal is set up by identical GID with mobile terminal server is connected.
Specifically, it is described to judge whether mobile terminal is set up to be connected by identical GID with mobile terminal server and specifically include
Following steps:
S121:Computer end server access mobile terminal server, judges that now mobile terminal is whether by the mobile terminal server
Set up with mobile terminal server by the GID and be connected;
S122:Mobile terminal server will determine that result feeds back to computer end server.Now, the mobile terminal server is not swum
The preservation of play data, it is used to for the game data of computer end server to be forwarded to mobile terminal, and mobile terminal is then by the shifting
Moved end server realizes the data interaction with computer end server.
S13:If mobile terminal is not set up with mobile terminal server being connected, game data is sent to computer end by computer end server
End;If finding no the situation that other mobile terminals are logged in, then show to be first logged into during now computer terminal, directly ask
Computer end server sends game data, is normally logged in.
S14:If mobile terminal is set up with mobile terminal server being connected, mobile terminal server disconnects and being connected with the communication of mobile terminal,
And game data is sent to computer terminal by computer end server.If the situation for having other mobile terminals to log in, show here it
Front player is logged in by mobile terminal, and now computer end server also preserves the game data of original mobile terminal, now
Game data is sent to computer terminal by computer end server, the game data of original mobile terminal is taken over by computer terminal, after
It is continuous to carry out original game.
The present embodiment 1 is respectively used to enter line number with computer terminal and mobile terminal using computer end server and mobile terminal server
According to intercommunication.And, computer end server and mobile terminal server are set up into incidence relation.When being logged in by mobile terminal in the ban,
Game data forwarding is carried out by mobile terminal server by mobile terminal, makes mobile terminal carry out data interchange with computer end server.
And when now computer terminal logs in, the connection with computer end server is set up, now computer end server first passes through mobile terminal clothes
Business device disconnects the connection with mobile terminal, then the game data transmission electricity that original mobile terminal is directly stored in computer end server
Brain terminal, so as to computer terminal can take over the game of original mobile terminal.Therefore, though when mobile terminal is when being fought,
Combat data can also be sent to computer terminal by computer end server, so that player is not used in computer terminal and forms a team again,
Original unclosed fight can be continued.Therefore, compared to prior art, by the present invention in that computer end is mutual with mobile phone end data
It is logical, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication etc., player is in the certain hour of more exchange device
The state of forming a team on backstage is kept, is reached the standard grade after disconnection still in offline front troop.
Embodiment 2
The present invention cannot realize the data interchange of computer terminal and mobile terminal to solve player in game process, such as, when
Player is logged in mobile terminal, is now set up with mobile terminal server by mobile terminal and is connected, and is serviced by the mobile terminal
The game data of mobile terminal is forwarded to computer end server by device, realizes that the data between mobile terminal and computer end server are mutual
It is logical.If when player's mobile terminal is fought, if when card machine or other failures occurs in mobile terminal, player may need to make
Logged in computer terminal, if mobile terminal is directly exited, original combat data cannot be retained, player cannot be continued ginseng
Plus original fight.Meanwhile, if logged in using computer terminal, in addition it is also necessary to determine whether that other computer terminals use identical
GID is logged in, and prevents computer end server from cannot accurately send game data to corresponding computer terminal.Therefore, pin
To this situation, the present embodiment 2 provides a kind of solution, mutual below for data in computer terminal and game of mobile terminal
Logical method is specifically described.
In order to prevent multiple computers terminal simultaneously from being logged in using same GID, therefore, the present embodiment is implementing 1
On the basis of increased when user by GID computer terminal log in, set up to the computer end server connection when,
Judgement to other computer terminals and the connection of computer end server.
Specifically, Fig. 3 is referred to, it is the step of the method for data interchange in the computer terminal of the present embodiment and game of mobile terminal
Rapid flow chart.
The method of data interchange, comprises the following steps in the computer terminal of the present embodiment offer and game of mobile terminal:
S21:Set up the incidence relation of computer end server and mobile terminal server;
S22:When user is logged in by GID in computer terminal, sets up the connection for arriving the computer end server, judge to move
Whether dynamic terminal is set up by identical GID with mobile terminal server is connected;If it is not, execution step S24;If so, hold
Row step S23;
S23:Mobile terminal server disconnects and being connected with the communication of mobile terminal;
S24:Judge whether other computer terminals are set up by identical GID with computer end server to be connected;
S25:If other computer terminals are not set up with computer end server being connected, game data is sent to institute by computer end server
State computer terminal;
S26:If other computer terminals are set up with computer end server being connected, computer end server disconnects and other computer terminals
Communication connection, and game data is sent to the computer terminal by computer end server.
Fig. 4 is referred to, it is that the computer end server of the present embodiment sends game data to flow chart the step of computer terminal.
Further, in the present embodiment, the step of computer end server sends game data to computer terminal, specifically includes:
S251:Judge now whether user is fought in computer terminal;
S252:If so, then computer end server allows user to enter the fight protection period, and by AI system adapter combat actions;Perform
Step S254;
S253:If it is not, then sending log-on message to computer terminal by computer end server;
S254:Whether computer end server checks user in the fight protection period;
S255:If so, then computer end server sends fight field data to computer terminal, and the computer terminal is according to reception
Field data recover fight scene, and send fight control data to computer end server;
S256:If it is not, being then done directly login.
The present embodiment 2 is respectively used to enter line number with computer terminal and mobile terminal using computer end server and mobile terminal server
According to intercommunication.And, computer end server and mobile terminal server are set up into incidence relation.When being logged in by mobile terminal in the ban,
Game data forwarding is carried out by mobile terminal server by mobile terminal, makes mobile terminal carry out data interchange with computer end server.
And when now computer terminal logs in, the connection with computer end server is set up, now computer end server first passes through mobile terminal clothes
Business device disconnects the connection with mobile terminal, then the game data transmission electricity that original mobile terminal is directly stored in computer end server
Brain terminal, so as to computer terminal can take over the game of original mobile terminal.Therefore, though when mobile terminal is when being fought,
Combat data can also be sent to computer terminal by computer end server, so that player is not used in computer terminal and forms a team again,
Original unclosed fight can be continued.
Meanwhile, further by detecting to other computer terminals, can prevent multiple computers terminal simultaneously from using same
GID is logged in.
Further fought by using AI systems (intelligence system) adapter, player can be efficiently solved and cut by mobile terminal
When being changed to computer terminal, it is impossible to carry out the defect of real-time operation.When player logs in computer terminal, then by player at computer end
End proceeds game operation.
Therefore, compared to prior art, by the present invention in that computer end and mobile phone terminal data interchange, including combat data intercommunication,
Animation intercommunication, operation intercommunication, chat intercommunication etc., player keeps the state of forming a team on backstage in the certain hour of more exchange device, breaks
Reach the standard grade after opening still in offline front troop.
Please refer to Fig. 5, it is the connection diagram of data interchange system in the computer end of the present embodiment 2 and mobile terminal game.
Correspondingly, in order to realize the data interchange method of computer terminal that the present embodiment provided and mobile terminal, the present invention is also carried
Data interchange system in a kind of computer end and mobile terminal game, including computer end server end 10, computer terminal 20, movement are supplied
End server end 30, mobile terminal 40 and HTTP server end 50.
The HTTP server end 50, for by global association table, record to preserve computer end server end and mobile terminal service
The incidence relation at device end;
When the computer end server end 10 starts, global association table is downloaded from the HTTP server end 50, and passed through
The global association table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end 30 starts, global association table is downloaded from the HTTP server end 50, and passed through
The global association table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
Specifically, please refer to Fig. 6 and Fig. 7, it is respectively computer terminal and the inside of mobile terminal data intercommunicating system and connects
Connect the internal module connection diagram of schematic diagram and computer end server end.
The computer end server end 10 includes:Log-on message receiver module 101, judge that request module 102, judged result connects
Processing module 103 is received, judge module 104 is logged in, is logged in judged result processing module 105, fight judge module 106, fight
Judged result processing module 107, fight phase judge module 108, fight phase judged result processing module 109, and fight control
Request receiving processing module 110.
The log-on message receiver module 101, for receiving the landing request information of computer terminal;
The judgement request module 102, for sending solicited message to mobile terminal server end, asks the mobile terminal server
End judge the mobile terminal whether by using with computer terminal identical GID foundation and the mobile terminal server end
Connection;
The judged result receiving processing module 103, for receiving the judged result of mobile terminal server end;When described mobile whole
End is not set up with mobile terminal server end and is connected, then by transmission game data to computer terminal;When mobile terminal and mobile terminal service
Connection is set up at device end, then send and disconnect request to mobile terminal server end, asks mobile terminal server end to disconnect and mobile terminal
Communication connection, and game data is sent to computer terminal;
The login judge module 104, for being logged in computer terminal by GID as user, is set up to the computer end
During the connection of server end, judge whether other computer terminals are set up by identical GID with computer end server end and be connected;
The login judged result processing module 105, for receiving the judged result for logging in judge module, if other computer terminals
Do not set up with computer end server end and be connected, then send game data to the computer terminal;If other computer terminals and computer end
Server end sets up connection, then disconnect and being connected with the communication of other computer terminals, and sends game data to the computer terminal.
The fight judge module 106, for when computer end server end sends game data to computer terminal, judging user
Whether fought in computer terminal;
The fight judged result processing module 107, for receiving the judged result of fight judge module;If user is at computer end
End is fought, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise,
Then log-on message is sent to computer terminal by computer end server end;
The fight phase judge module 108, for judging user whether in the fight protection period;
The fight phase judged result processing module 109, for receiving the judged result of fight phase judge module, if user is in
Fight the protection period, then computer end server end sends fight field data to computer terminal;Otherwise, then it is done directly login;
The fight control data receiving processing module 110, for receiving the fight control data of computer terminal, and fight is controlled
Power processed is transferred to computer terminal.
Please refer to Fig. 6 and Fig. 8, it is respectively the inside connection diagram of computer terminal and mobile terminal data intercommunicating system
With the internal module connection diagram of computer terminal.
The computer terminal 20 includes:Logging request module 201, data reception module 202, field data recovery module 203
With fight control data module 204.
The logging request module 201, for sending landing request information to computer end server end;
The data reception module 202, for receiving the game data information of computer end server end transmission;
The field data recovery module 203, for recovering fight scene according to the field data for receiving;
The fight control data module 204, for sending fight control data to computer end server end.
Fig. 6 is referred to, the mobile terminal server end 30 includes:Judge request receiving module 301, judged result sending module
302 ask receiving processing module 303 with disconnecting.
The judgement request receiving module 301, for receiving the judgement solicited message of computer end server end, and to mobile terminal
Whether by using being judged with computer terminal identical GID;
The judged result sending module 302, for the judged result of the judgement request module to be sent to computer end server
End;
It is described to disconnect request receiving processing module 303, for receiving the disconnection solicited message of computer end server end, and disconnect with
The communication connection of mobile terminal.
The course of work of the system of data interchange in the computer end and mobile terminal game is specifically described below:
First, when computer end server end or mobile terminal server end are opened, first global association is downloaded from HTTP server end
Table, according to the corresponding relation of global association table, searches for the corresponding mobile terminal server end of the computer end server end, or
Person finds out computer end server end corresponding with mobile terminal server end, and sets up incidence relation.
Now, player is logged in by computer terminal.Specifically, first send logging request by the logging request module 201 to believe
Cease to computer end server end.
The log-on message receiver module 101 of computer end server end 10 receives the landing request information of computer terminal, and by described
Judge that request module 102 sends solicited message to mobile terminal server end, ask the mobile terminal server end to judge the movement
Whether terminal is by using the connection set up with computer terminal identical GID with the mobile terminal server end.
Mobile terminal server end receives the judgement solicited message of computer end server end by the judgement request receiving module 301,
And to mobile terminal whether by using judging with computer terminal identical GID.Then, by the judged result
Sending module 302 sends the judged result of the judgement request module to computer end server end.
Computer end server end receives the judged result of mobile terminal server end by the judged result receiving processing module 103;
Do not set up with mobile terminal server end when the mobile terminal and be connected, then by transmission game data to computer terminal;Work as mobile terminal
Set up with mobile terminal server end and be connected, then send and disconnect request to mobile terminal server end, request mobile terminal server end disconnects
It is connected with the communication of mobile terminal, and sends game data to computer terminal.
Mobile terminal server end disconnects request receiving processing module 303 by described, for receiving the disconnection of computer end server end
Solicited message, and disconnect be connected with the communication of mobile terminal.
Then, computer end server end is logged in by GID in user by the login judge module 104 in computer terminal
When, when setting up the connection for arriving the computer end server end, judge other computer terminals whether by identical GID and electricity
Brain end server end sets up connection.
Again the judged result for logging in judge module is received by the login judged result processing module 105, if other computer terminals
Do not set up with computer end server end and be connected, then send game data to the computer terminal;If other computer terminals and computer end
Server end sets up connection, then disconnect and being connected with the communication of other computer terminals, and sends game data to the computer terminal.
Computer terminal receives the game data information that computer end server end sends by the data reception module 202.
Further, when computer end server end sends game data to computer terminal, sentenced by the fight judge module 106
Whether disconnected user is fought in computer terminal;And fight judge module is received by the fight judged result processing module 107
Judged result;If user is fought in computer terminal, computer end server end allows user to enter the fight protection period, and by AI
System adapter combat action;Otherwise, then by computer end server end transmission log-on message to computer terminal.
Then, judge user whether in the fight protection period by the fight phase judge module 108;And sentenced by the fight phase
Disconnected result treatment module 109, for receiving the judged result of fight phase judge module, if user is in fight protection period, electricity
Brain end server end sends fight field data to computer terminal;Otherwise, then it is done directly login.
Now, the field data recovery module 203 of computer terminal recovers fight scene according to the field data for receiving, and passes through
The fight control data module 204, for sending fight control data to computer end server end.
Computer end server end please by the fight control that the fight control data receiving processing module 110 receives computer terminal
Ask, and the control right transfer that will fight is to computer terminal.
It is of the invention by the landing request information in computer end received server-side computer terminal compared to prior art, and accordingly
Determine whether that identical account is logged in mobile terminal.If having, the connection of mobile terminal is disconnected, and game data is sent
To computer terminal, played by computer terminal adapter.And if mobile terminal is not logged on, can directly be logged in by computer terminal,
Start new game, carry out new fight.Further, when mobile terminal is when being fought, electricity can be received by computer terminal
The game data of brain end server end, and recover fight scene, such that it is able to add the game for carrying out originally in, without group again
Team participates in new fight.
Embodiment 3
Play when player plays in computer end, if needs of being then in a hurry go out to wait, need to leave computer.And if now player is firm
When fighting in forming a team fortunately, then termination is needed to form a team, it is impossible to be further continued for fight, so have impact on the game experiencing of player.Cause
This, when now logging in by mobile terminal, needs the game data of computer terminal to be sent to mobile terminal, is entered by mobile terminal
The original game of row.Therefore, the present invention accordingly provides a kind of embodiment, for being taken over the trip of computer terminal by mobile terminal
Play, proceeds original game.
Specifically, Fig. 9 is referred to, it is the step of the method for data interchange in the computer terminal of the present embodiment and game of mobile terminal
Rapid flow chart.The method there is provided data interchange in a kind of computer terminal and game of mobile terminal of the present embodiment, including following step
Suddenly:
S31:Set up the incidence relation of computer end server and mobile terminal server;
Please refer to Figure 10, it is computer end server realizes flow chart of steps with mobile terminal server sets up incidence relation.
When computer end server and mobile terminal server is set up, following steps are specifically included:
S311:Global association table is set up, record preserves the incidence relation of computer end server and mobile terminal server, and is stored in
In HTTP server;
S312:When computer end startup of server, global association table is downloaded from the HTTP server, and by described complete
Office's contingency table, searches mobile terminal server corresponding with the computer end server, and sets up connection;
S313:When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by described complete
Office's contingency table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
S32:When user is logged in by GID in mobile terminal, sets up the connection for arriving the mobile terminal server, electricity is judged
Whether brain terminal is set up by identical GID with computer end server is connected;
It is specifically, described to judge whether computer terminal is set up in the step of being connected by identical GID and computer end server,
Specifically include:
S321:Mobile terminal server access computer end server, judges that now computer terminal is whether by the computer end server
Set up with computer end server by the GID and be connected;
S322:Computer end server will determine that result feeds back to mobile terminal server.
S33:If computer terminal is not set up with computer end server being connected, game data is sent to mobile terminal by computer end server
Server, then mobile terminal is forwarded to by mobile terminal server;
S34:If computer terminal is set up with computer end server being connected, computer end server disconnects and being connected with the communication of computer terminal,
And game data is sent to mobile terminal server, then game data is forwarded to into mobile terminal by mobile terminal server.
The present embodiment 3 is respectively used to enter line number with computer terminal and mobile terminal using computer end server and mobile terminal server
According to intercommunication.And, computer end server and mobile terminal server are set up into incidence relation.When being logged in by computer terminal in the ban,
Data interchange is carried out by computer terminal and computer end server.And when now mobile terminal is logged in, set up and mobile terminal server
Connection, now computer end server first disconnects the connection with computer terminal, then directly original computer terminal is stored in into computer end
The game data of server is forwarded to mobile terminal by mobile terminal server, so as to mobile terminal can take over original computer terminal
Game.Therefore, even if when computer terminal is when being fought, it is also possible to combat data is sent to shifting by computer end server
Dynamic terminal, so that player is not used in mobile terminal and forms a team again, can continue original unclosed fight.Therefore compared to existing
Have technology, by the present invention in that computer end and mobile phone terminal data interchange, including combat data intercommunication, animation intercommunication, operation intercommunication,
Chat intercommunication etc., player keeps the state of forming a team on backstage in the certain hour of more exchange device, reaches the standard grade after disconnection still in before offline
Troop in.
Embodiment 4
Play when player plays in computer end, if needs of being then in a hurry go out to wait, need to leave computer.And if now player is firm
When fighting in forming a team fortunately, then termination is needed to form a team, it is impossible to be further continued for fight, so have impact on the game experiencing of player.Cause
This, when now logging in by mobile terminal, needs the game data of computer terminal to be sent to mobile terminal, is entered by mobile terminal
The original game of row.Meanwhile, if logged in using mobile terminal, in addition it is also necessary to determine whether that other mobile terminals use identical
GID is logged in, and prevents computer end server from cannot accurately send game data to corresponding computer terminal.
The present invention accordingly provides a kind of embodiment, for being taken over the game of computer terminal by mobile terminal, proceeds original
Game.Simultaneously in order to prevent multiple stage mobile terminal simultaneously from being logged in using same GID, therefore, the present embodiment
Increased on the basis of implementing 3 when user is logged in by GID in mobile terminal, set up to the mobile terminal server
Judgement during connection, to other mobile terminals and the connection of mobile terminal server.
Specifically, Figure 11 is referred to, it is the step of the method for data interchange in the computer terminal of the present embodiment and game of mobile terminal
Rapid flow chart.
The method of data interchange, comprises the following steps in the computer terminal of the present embodiment offer and game of mobile terminal:
S41:Set up the incidence relation of computer end server and mobile terminal server;
S42:When user is logged in by GID in mobile terminal, sets up the connection for arriving the mobile terminal server, electricity is judged
Whether brain terminal is set up by identical GID with computer end server is connected;If it is not, execution step S44;If so, hold
Row step S43;
S43:Mobile terminal server disconnects and being connected with the communication of mobile terminal;
S44:Judge whether other mobile terminals are set up by identical GID with mobile terminal server to be connected;
S45:If other mobile terminals are not set up with computer end server being connected, mobile terminal is sent data to by computer end server
Server, then mobile terminal is forwarded to by mobile terminal server;
S46:If other mobile terminals are set up with computer end server being connected, mobile terminal server disconnects and other mobile terminals
Communication connection, and game data is sent to the mobile terminal by mobile terminal server.
Further, Figure 12 is referred to, it is the step of computer end server of the present invention sends game data mobile terminal flow chart.
The computer end server disconnects and being connected with the communication of computer terminal, and game data is sent to mobile terminal server, then
The step of being forwarded to mobile terminal by mobile terminal server, specifically includes:
S451:Judge now whether user is fought in computer terminal;
S452:If so, then computer end server allows user to enter the fight protection period, and by AI system adapter combat actions;
S453:If it is not, then sending log-on message to mobile terminal server by computer end server, and will be stepped on by mobile terminal server
Record information is forwarded to mobile terminal;
S454:Whether computer end server checks user in the fight protection period;
S455:If so, then computer end server sends fight field data to mobile terminal server, and by mobile terminal server
Mobile terminal is forwarded to, the mobile terminal recovers fight scene according to the field data for receiving, and sends fight control data extremely
Mobile terminal server, and computer end server is forwarded to by mobile terminal server;
Specifically, all fight resources of computer end server are transformed into into mobile terminal and substantially increase mobile terminal installation kit
Size, therefore, in order to reduce the size of mobile phone installation kit, now mobile terminal installation kit is simplified.
Such as:The calling beast being of little use fight resource is extracted out from installation kit, individually packing is put in HTTP download servers.
Player points out after the login player to need to download fight Resources development bag, selective to download;In course of battle, call together in initialization
Detect whether there is the calling beast fight resource when calling out beast, if nothing, using alternate resources.
S456:If it is not, being then done directly login.
The present embodiment 4 is respectively used to enter line number with computer terminal and mobile terminal using computer end server and mobile terminal server
According to intercommunication.And, computer end server and mobile terminal server are set up into incidence relation.When being logged in by computer terminal in the ban,
Data interchange is carried out by computer terminal and computer end server.And when now mobile terminal is logged in, set up and mobile terminal server
Connection, now computer end server first disconnects the connection with computer terminal, then directly original computer terminal is stored in into computer end
The game data of server is forwarded to mobile terminal by mobile terminal server, so as to mobile terminal can take over original computer terminal
Game.Therefore, even if when computer terminal is when being fought, it is also possible to combat data is sent to shifting by computer end server
Dynamic terminal, so that player is not used in mobile terminal and forms a team again, can continue original unclosed fight.
Meanwhile, further by detecting to other computer terminals, can prevent multiple computers terminal simultaneously from using same
GID is logged in.
Further fought by using AI systems (intelligence system) adapter, player can be efficiently solved and cut by mobile terminal
When being changed to computer terminal, it is impossible to carry out the defect of real-time operation.When player logs in computer terminal, then by player at computer end
End proceeds game operation.
Therefore it is by the present invention in that computer end and mobile phone terminal data interchange including combat data intercommunication, dynamic compared to prior art
Intercommunication, operation intercommunication, chat intercommunication etc. are drawn, player keeps the state of forming a team on backstage in the certain hour of more exchange device, disconnects
Reach the standard grade afterwards still in offline front troop.
Figure 13 is referred to, it is the system connection diagram of the computer terminal of the present embodiment and game of mobile terminal data interchange.This
The system of data interchange in the computer terminal of embodiment and game of mobile terminal, including computer end server end 60, computer terminal 70,
Mobile terminal server end 80, mobile terminal 90 and HTTP server end 50;
The HTTP server end 50, for by global association table, record to preserve computer end server end and mobile terminal service
The incidence relation at device end;
When the computer end server end starts, global association table is downloaded from the HTTP server end 50, and by described
Global association table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end starts, global association table is downloaded from the HTTP server end 50, and by described
Global association table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
Please refer to Figure 14, it is the system module connection of data interchange in the computer terminal of the present embodiment and game of mobile terminal
Schematic diagram.
The mobile terminal server end 80, including:Log-on message receiver module 801, judge request module 802, judged result
Receiving processing module 803, game data reception module 804, game data sending module 805, log in judge module 806, step on
Record judged result processing module 807 and fight control data forwarding module 808;
The log-on message receiver module 801, for receiving the landing request information of mobile terminal;
The judgement request module 802, for sending solicited message to computer end server end, asks the computer end server
End judge the computer terminal whether by using with the foundation of mobile terminal identical GID and the computer end server end
Connection;
The judged result receiving processing module 803, for receiving the judged result of computer end server end;When computer terminal not
Set up with computer end server end and be connected, then asked to computer end server end by transmission game data;If computer terminal and computer
End server end sets up connection, then send and disconnect request to computer end server end, request computer end server end disconnect with
The communication connection of computer terminal, and game data is asked to computer end server end;
The game data reception module 804, for receiving the game data of computer end server end;
The game data sending module 805, for the game data of game data reception module to be forwarded to into the mobile terminal.
The login judge module 806, for being logged in mobile terminal by GID as user, is set up to the mobile terminal
During the connection of server end, judge whether other mobile terminals are set up by identical GID with mobile terminal server end and be connected;
The login judged result processing module 807, for receiving the judged result for logging in judge module, if other mobile terminals
Do not set up with mobile terminal server end and be connected, then send game data and ask to computer end server end;If other mobile terminals with
Mobile terminal server end sets up connection, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer
End server end.
The fight control data forwarding module 808, for the fight control data of mobile terminal to be forwarded to into computer end server
End.
The computer end server end, including:Judge request receiving module 601, judged result sending module 602, disconnect request
Receiving processing module 603, data transmission blocks 604, fight judge module 605, fight judged result processing module 606, war
Bucket phase judge module 607, fight phase judged result processing module 608 and fight control data receiving processing module 609.
The judgement request receiving module 601, for receiving the judgement solicited message of mobile terminal server end, and to computer terminal
Whether by using being judged with mobile terminal identical GID;
Judged result sending module 602, for the judged result of the judgement request module to be sent to mobile terminal server end;
Request receiving processing module 603 is disconnected, for receiving the disconnection solicited message of mobile terminal server end, and is disconnected and computer
The communication connection of terminal;
Data transmission blocks 604, service for according to the request of data of mobile terminal server end, sending game data to mobile terminal
Device end.
Fight judge module 605, for when computer end server end sends game data to Mobile Server, judging that user is
It is no to be fought in computer terminal;
Fight judged result processing module 606, for receiving the judged result of fight judge module;If user enters in computer terminal
Row is fought, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by
Computer end server end sends log-on message to mobile terminal server end;
Fight phase judge module 607, for judging user whether in the fight protection period;
Fight phase judged result processing module 608, for receiving the judged result of fight phase judge module, if user is in fight
Protection period, then computer end server end by fight field data send to mobile terminal server end;Otherwise, log-on message is sent extremely
Mobile terminal server end;The mobile terminal server end sends the fight field data for receiving to shifting by data transmission blocks
Dynamic terminal;
Fight control data receiving processing module 609, for receiving the fight control data of computer terminal, and the control that will fight
Jing mobile terminals server end is transferred to mobile terminal.
The mobile terminal 90, including:
Logging request module 901, for sending landing request information to mobile terminal server end;
Data reception module 902, for receiving the game data information that mobile terminal server end sends;
Field data recovery module 903, for recovering fight scene according to the field data for receiving;
Fight control data module 904, for sending fight control data to mobile terminal server end, and is taken by the mobile terminal
Business device end is sent to computer end server end.
Fight parsing module 905, for parsing received fight protocol data;
Fight logic module 906, for by fight agreement, order to be performed in the form of queue, fight animation is entered in units of bout
Row is played.
The course of work of the system of data interchange in the computer end and mobile terminal game is specifically described below:
First, landing request information is sent to mobile terminal server end by the logging request module 901 by mobile terminal;
The mobile terminal server end 80 receives the landing request information of mobile terminal by the log-on message receiver module 801,
Now solicited message is sent to computer end server end by the judgement request module 802, ask the computer end server end
Judge the computer terminal whether by using the company set up with mobile terminal identical GID with the computer end server end
Connect.
Meanwhile, the login judge module 806 is logged in by GID as user in mobile terminal, is set up to the mobile terminal
During the connection of server end, judge whether other mobile terminals are set up by identical GID with mobile terminal server end and be connected;
The login judged result processing module 807, receives the judged result for logging in judge module, if other mobile terminals not with movement
End server end sets up connection, then send game data and ask to computer end server end;If other mobile terminals take with mobile terminal
Connection is set up at business device end, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer end server
End.
Computer end server end receives the judgement solicited message of mobile terminal server end by the judgement request receiving module 601,
And to computer terminal whether by using judging with mobile terminal identical GID;Meanwhile, then judge to tie by described
Fruit sending module 602 sends the judged result of the judgement request module to mobile terminal server end.
Mobile terminal server end receives again the judged result of computer end server end by the judged result receiving processing module 80;
Do not set up with computer end server end when computer terminal and be connected, then asked to computer end server end by transmission game data;If electric
Brain terminal is set up with computer end server end and is connected, then send and disconnect request to computer end server end, request computer end clothes
Business device end disconnects and being connected with the communication of computer terminal, and game data is asked to computer end server end.
Computer end server end disconnects the disconnection for asking receiving processing module 603 to receive mobile terminal server end request letter by described
Breath, and disconnect and being connected with the communication of computer terminal, and by the data transmission blocks 604 according to the number of mobile terminal server end
According to request, game data is sent to mobile terminal server end.
Specifically, the computer end server end works as computer end server end transmission game data extremely by fight judge module 605
During Mobile Server, judge whether user is fought in computer terminal.By fighting, judged result processing module 606 receives war
The judged result of bucket judge module;If user is fought in computer terminal, computer end server end allows user to enter fight and protects
The shield phase, and by AI system adapter combat actions;Otherwise, then by computer end server end transmission log-on message to mobile terminal server
End.Meanwhile, then judge user whether in the fight protection period by phase judge module 607 of fighting;And knot is judged by the phase of fighting
Fruit processing module 608 receives the judged result of fight phase judge module, if user is in fight protection period, computer end server
End sends fight field data to mobile terminal server end;Otherwise, log-on message is sent to mobile terminal server end;The shifting
Moved end server end sends the fight field data for receiving to mobile terminal by data transmission blocks.
Mobile terminal server end receives the game data of computer end server end by the game data reception module 804.Then,
The game data of game data reception module is forwarded to by the mobile terminal by the game data sending module 805.
Mobile terminal receives the game data information that mobile terminal server end sends by the data reception module 902, and passes through
Field data recovery module 903 recovers fight scene according to the field data for receiving.Again by fight control data module 904
Fight control data is sent to mobile terminal server end, and is sent to computer end server end by the mobile terminal server end.
Meanwhile, by fighting, parsing module 905 parses received fight protocol data;By fighting, logic module 906 will fight
Bucket agreement order in the form of queue is performed, and fight animation is played out in units of bout.
Mobile terminal server end is forwarded to the fight control data of mobile terminal by the fight control data forwarding module 808
Computer end server end.
Computer end server end please by the fight control that the fight control data receiving processing module 609 receives computer terminal
Ask, and fight control Jing mobile terminal server end is transferred to into mobile terminal.
Further, because mobile terminal of mobile telephone and computer terminal are when animation resource is loaded, required form is different.Therefore,
In order that mobile phone terminal can share a set of fight resource with computer terminal, also by a resource modular converter, it is used for animation
The form of resource enters the form for being converted into energy suitable for movable terminal.And be just complete before mobile terminal packing makes in conversion
Into form conversion.
The concrete methods of realizing flow process of resource modular converter is introduced in detail below.In the present embodiment, the computer terminal is whole with mobile
End shares same set of fight resource, and computer terminal uses the animation resource of TCP (Tianxia Compressed Picture) form,
Mobile terminal using PNG format picture resource, it is therefore desirable to by the TCP animated transitions of computer terminal be PNG pictures, tool
Body flow path switch is as follows:
(1) the use of instead solve instrument by TCP animated transitions is PNG sequence of pictures;
(2) PNG sequence of pictures is broken into into a big PNG picture using TexturePacker instruments;
(3) to reduce resource size and accelerating mobile terminal resource reading speed, PNG pictures are entered into row format conversion and is compressed;
In this step, for the mobile terminal of IOS systems is that PNG pictures are converted to into PVR forms, for Android systems
The mobile terminal of system is that PNG pictures are converted to into ETC1 forms.PVR forms are with ETC1 format pictures respectively in IOS systems
With in android system have higher loading speed.
(4) mobile terminal increases frame renewal function to realize the variable playback of frame event and animation.
Further, the concrete analyzing step flow process of fight parsing module is introduced in detail below.When player is in fight, mobile terminal
Need with computer terminal using identical fight agreement, the intercommunication of combat data can be realized, fought on mobile terminals.
Therefore, for the problems referred to above, computer terminal end and mobile terminal are shared into same set of fight agreement in the present embodiment, is fought
The data of agreement are transmitted in the hexadecimal string form of its binary data, mobile terminal realize unpack_int,
Tri- function pair fight agreements of unpack_string, unpack_bit are parsed, mainly comprising following fight agreement:
(1)WAR_START
Fight starts agreement, the information such as tactical deployment of troops erect-position used comprising fight both sides.
(2)WAR_END
Fight protocol finishes, terminate and close fight.
(3)WAR_TURN
Bout protocol finishes.
(4)WAR_ADD
Increase soldier's agreement.
(5)WAR_DEL
Delete soldier's agreement.
(6)WAR_ATTACK_NORMAL
Physical attacks agreement, with WAR_WSTATE, WAR_STATUS, WAR_ADDON, WAR_PERFORM, WAR_DEL association
View is used cooperatively, and is played off blood, is hit, persistent state, hits winged special efficacy.
(7)WAR_ATTACK_SERIES
Double hit agreement, one or more WAR_ATTACK_SERIES agreements coordinate with a WAR_ATTACK_NORMAL agreement
Use, multiple attack one or more enemies.
(8)WAR_ATTACK_CONVERG
Agreement is made a joint attack on, one or more WAR_ATTACK_CONVERG agreements are matched somebody with somebody with a WAR_ATTACK_NORMAL agreement
Conjunction is used, and multiple soldiers attack an enemy simultaneously.
(9)WAR_PROTECT
Protection agreement, for teammate injury is kept out.
(10)WAR_PERFORM
Magic arts agreement, release magic arts are attacked, and are also used for escaping, hit special efficacy.
(11)WAR_WSTATE
Status protocol, comprising life state, falls blood numerical value, is hit status information, with thing attack, method is attacked agreement and is used cooperatively.
(12)WAR_ADDON
Persistent state agreement, be soldier addition persistent state, with thing attack, method is attacked agreement and is used cooperatively.
(13)WAR_STATUS
Haemal strand status protocol, shows the change of haemal strand percentage.
(14)WAR_SUMMON_CATCH
Arrest calling beast agreement.
(15)WAR_CHAT
Chat protocol.
Further, fight logic module concrete steps flow process is introduced in detail below.
Mobile terminal fight agreement order in the form of queue is performed, and fight animation is played out in units of bout, each bout
It is as follows that fight agreement performs flow process:
1. Current protocol whether executed, if so, then performs next agreement, turns 1., otherwise, turns 2.;
2. Current protocol is WAR_TURN, is turned
3. Current protocol is WAR_END, is turned
4. Current protocol is WAR_START, initializes scene of fighting, both sides' tactical deployment of troops etc., performs next agreement, is turned 1.;
5. Current protocol is WAR_ADD, increases a soldier, performs next agreement, is turned 1.;
6. Current protocol is WAR_WSTATE, plays blood volume change numeral bounce special efficacy, performs next agreement, is turned 1.;
7. Current protocol is WAR_STATUS, shows haemal strand change, performs next agreement, is turned 1.;
8. Current protocol is WAR_DEL, deletes a soldier, performs next agreement, is turned 1.;
9. Current protocol is WAR_CHAT, shows chat content, performs next agreement, is turned 1.;
10. Current protocol is WAR_ADDON, is soldier's addition persistent state special efficacy, performs next agreement, is turned 1.;
Current protocol is WAR_SUMMON_CATCH, and calling beast animation is arrested in broadcasting, and animation performs next agreement after terminating,
Turn 1.;
Current protocol is one of WAR_ATTACK_NORMAL, WAR_ATTACK_SERIES, and WAR_PROTECT is searched for backward
Agreement, checks whether there is Protector, if existing, WAR_PROTECT agreements is set to into executed, turnsOtherwise, turn
The person of being hit retreats, and Protector moves to the person of being hit position, turns
Search for backward it is all to by the related WAR_WSTATE of the person of hitting, Protector, WAR_STATUS, WAR_ADDON,
WAR_PERFORM, obtains and is hit state, fall blood state, hit state, persistent state cruelly by the person of hitting, and related protocol is set to
Perform, play attacker attack animation, being hit animation, being hit special efficacy, persistent state by the person of hitting, while fall blood point to
WAR_PERFORM agreements are searched for afterwards, anti-shake has been checked whether, if having, anti-vibrations picture is played, and all animations are played after terminating,
Next agreement is performed, is turned 1.;
Current protocol is WAR_PERFORM, if escaping agreement, plays animation of escaping, and performs next agreement, is turned 1.;
If being hit special efficacy agreement, then save as the next person of being hit and hit special efficacy, perform next agreement, turn 1.;If magic arts are attacked
Agreement, turns
All WAR_WSTATE, WAR_STATUS, WAR_ADDON, the WAR_PERFORMs related to the person of hitting is received are searched for backward,
Obtain and hit state, fall blood state, hit state, persistent state cruelly by the person of hitting, related protocol is set to into executed, broadcasting is attacked
The animation of excuting a law of the person of hitting, magic arts animation, being hit animation, being hit special efficacy, persistent state by the person of hitting, while falling blood point backward
Search WAR_PERFORM agreements, have checked whether anti-shake, if having, play anti-vibrations picture, and all animations are played after terminating,
Next agreement is performed, is turned 1.;
Next bout is performed, is turned 1.;
Finish the battle, close scene of fighting.
Figure 15 is referred to, it is the screen area display renderings of mobile terminal.Further for the operating experience for being convenient to user,
The mobile terminal also includes region division display module, during for mobile terminal portrait layout, display screen is divided into:Combat zone
Domain, chat area and feature operation region.
It is of the invention by the landing request information in mobile terminal received server-side mobile terminal compared to prior art, and by electricity
Brain end server end accordingly determines whether that identical account is logged in computer terminal.If having, the connection of computer terminal is disconnected,
And game data is sent to mobile terminal, played by mobile terminal adapter.And if computer terminal is not logged on, can be by moving
Dynamic terminal is directly logged in, and starts new game, carries out new fight.It is thus possible to continue original fight from mobile terminal,
Without forming a team again.
Further, by arranging fight parsing module 905 on mobile terminals;By parsing module 905 of fighting, parsing is received
Fight protocol data, and by fight logic module 906 by fight agreement in the form of queue order perform, fight animation with
Bout is played out for unit so that when mobile terminal is played, and combat data conversion is more quick, and animation effect shows
It is more smooth.
Therefore, by the present invention in that computer end and mobile phone terminal data interchange, including game data intercommunication, animation intercommunication, operation are mutual
Logical, chat intercommunication etc., player keeps the state of forming a team on backstage in the certain hour of more exchange device, reaches the standard grade still under after disconnection
In troop before line.Can continue still to be carried out jointly in the player of computer end operation with other after computer is left so as to solve player
The problem of combat mission so as to which task is not affected by equipment.
Above-mentioned embodiment is the invention is not limited in, if the various changes or deformation to the present invention are without departing from the spirit of the present invention
And scope, if these are changed and deformation belongs within the scope of the claim and equivalent technologies of the present invention, then the present invention is also intended to
Comprising these changes and deformation.
Claims (27)
1. in a kind of computer terminal and game of mobile terminal data interchange method, it is characterised in that:Including:
Set up the incidence relation of computer end server and mobile terminal server;And computer terminal is carried out when logging in computer end server
Data interaction;Data interaction is carried out by Mobile Server and computer end server when mobile terminal is logged in;
When user is logged in by GID in computer terminal, sets up the connection for arriving the computer end server, judgement is mobile eventually
Whether end is set up by identical GID with mobile terminal server is connected;
If mobile terminal is not set up with mobile terminal server being connected, game data is sent by computer end server and is entered to computer terminal
Row data interaction;
If mobile terminal is set up with mobile terminal server being connected, mobile terminal server disconnects and being connected with the communication of mobile terminal, and
Send new game data by computer end server carries out data interaction to computer terminal.
2. the method for data interchange during according to claim 1 computer end and mobile terminal are played, it is characterised in that:When user is led to
Cross GID to log in computer terminal, when setting up the connection for arriving the computer end server, also include:
Judge whether other computer terminals are set up by identical GID with computer end server to be connected;
If other computer terminals are not set up with computer end server being connected, game data is sent to the electricity by computer end server
Brain terminal;
If other computer terminals are set up with computer end server being connected, computer end server disconnects the communication with other computer terminals
Connection, and game data is sent to the computer terminal by computer end server.
3. the method for data interchange during computer end according to claim 1 or claim 2 and mobile terminal are played, it is characterised in that:It is described
In the step of setting up the incidence relation of computer end server and mobile terminal server, specifically include:
Global association table is set up, its record preserves the incidence relation of computer end server and mobile terminal server, and is stored in HTTP
In server;
When computer end startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches mobile terminal server corresponding with the computer end server, and sets up connection;
When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
4. the method for data interchange during according to claim 1 computer end and mobile terminal are played, it is characterised in that:The judgement
Whether mobile terminal is set up in the step of being connected by identical GID with mobile terminal server, specifically includes:
Computer end server access mobile terminal server, judges now whether mobile terminal passes through institute by the mobile terminal server
State GID and set up with mobile terminal server and be connected;
Mobile terminal server will determine that result feeds back to computer end server.
5. the method for data interchange during according to claim 1 computer end and mobile terminal are played, it is characterised in that:The computer
The step of end server sends game data to computer terminal, specifically includes:
Judge now whether user is fought in computer terminal, if so, then computer end server allows user to enter the fight protection period,
And by AI system adapter combat actions;If it is not, then sending log-on message to computer terminal by computer end server;
Whether computer end server checks user in the fight protection period, and if so, then computer end server sends out fight field data
Computer terminal is delivered to, fight scene is recovered in the computer terminal according to the field data for receiving, and sends fight control data to electricity
Brain end server;If it is not, being then done directly login.
6. in a kind of computer terminal and game of mobile terminal data interchange method, it is characterised in that:Including:
Set up the incidence relation of computer end server and mobile terminal server;And computer terminal is carried out when logging in computer end server
Data interaction;Data interaction is carried out by Mobile Server and computer end server when mobile terminal is logged in;
When user is logged in by GID in mobile terminal, sets up the connection for arriving the mobile terminal server, computer end is judged
Whether end is set up by identical GID with computer end server is connected;
If computer terminal is not set up with computer end server being connected, game data is sent by computer end server and is serviced to mobile terminal
Device, then mobile terminal is forwarded to by mobile terminal server;
If computer terminal is set up with computer end server being connected, computer end server disconnects and being connected with the communication of computer terminal, and
Game data is sent to mobile terminal server, then game data is forwarded to into mobile terminal by mobile terminal server.
7. the method for data interchange during according to claim 6 computer end and mobile terminal are played, it is characterised in that:When user is led to
Cross GID to log in mobile terminal, when setting up the connection for arriving the mobile terminal server, also include:
Judge whether other mobile terminals are set up by identical GID with mobile terminal server to be connected;
If other mobile terminals are not set up with mobile terminal server being connected, mobile terminal service is sent data to by computer end server
Device, then mobile terminal is forwarded to by mobile terminal server;
If other mobile terminals are set up with mobile terminal server being connected, mobile terminal server disconnects the communication with other mobile terminals
Connection, and game data is sent to the mobile terminal by mobile terminal server.
8. the method for data interchange during computer end and mobile terminal are played according to claim 6 or 7, it is characterised in that:It is described
In the step of setting up the incidence relation of computer end server and mobile terminal server, specifically include:
Global association table is set up, its record preserves the incidence relation of computer end server and mobile terminal server, and is stored in HTTP
In server;
When computer end startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches mobile terminal server corresponding with the computer end server, and sets up connection;
When mobile terminal startup of server, global association table is downloaded from the HTTP server, and by the global association
Table, searches computer end server corresponding with the mobile terminal server, and sets up connection.
9. the method for data interchange during according to claim 6 computer end and mobile terminal are played, it is characterised in that:The judgement
Whether computer terminal is set up in the step of being connected by identical GID with computer end server, specifically includes:
Mobile terminal server access computer end server, judges now whether computer terminal passes through institute by the computer end server
State GID and set up with computer end server and be connected;
Computer end server will determine that result feeds back to mobile terminal server.
10. the method for data interchange during according to claim 6 computer end and mobile terminal are played, it is characterised in that:The electricity
Brain end server disconnects and being connected with the communication of computer terminal, and game data is sent to mobile terminal server, then is taken by mobile terminal
The step of business device is forwarded to mobile terminal, specifically includes:
Judge now whether user is fought in computer terminal, if so, then computer end server allows user to enter the fight protection period,
And by AI system adapter combat actions;If it is not, then log-on message is sent to mobile terminal server by computer end server, and by moving
Log-on message is forwarded to mobile terminal by moved end server;
Whether computer end server checks user in the fight protection period, and if so, then computer end server sends out fight field data
Mobile terminal server is delivered to, and mobile terminal is forwarded to by mobile terminal server, the mobile terminal is according to the field data for receiving
Recover fight scene, and send fight control data to mobile terminal server, and computer end service is forwarded to by mobile terminal server
Device;If it is not, being then done directly login.
Data interchange system in a kind of 11. computer ends and mobile terminal game, it is characterised in that:Including computer end server end, computer
Terminal, mobile terminal server end and mobile terminal;
The computer end server end, including:
Log-on message receiver module, for receiving the landing request information of computer terminal;
Judge request module, for sending solicited message to mobile terminal server end, ask the mobile terminal server end to judge institute
Mobile terminal is stated whether by using the connection set up with computer terminal identical GID with the mobile terminal server end;
Judged result receiving processing module, for receiving the judged result of mobile terminal server end;When the mobile terminal not with shifting
Moved end server end sets up connection, then by transmission game data to computer terminal;When mobile terminal and mobile terminal server end are set up
Connection, then send and disconnect request to mobile terminal server end, and request mobile terminal server end disconnects and being connected with the communication of mobile terminal,
And game data is sent to computer terminal;
The computer terminal, including:
Logging request module, for sending landing request information to computer end server end;
Data reception module, for receiving the game data information of computer end server end transmission;
The mobile terminal server end, including:
Judge request receiving module, for receiving the judgement solicited message of computer end server end, and whether mobile terminal is passed through
Using being judged with computer terminal identical GID;
Judged result sending module, for the judged result of the judgement request module to be sent to computer end server end;
Request receiving processing module is disconnected, for receiving the disconnection solicited message of computer end server end, and is disconnected and mobile terminal
Communication connection.
12. according to claim 11 computer end and mobile terminal game in data interchange system, it is characterised in that:The electricity
Brain end server end also includes:Judge module is logged in, for being logged in computer terminal by GID as user, is set up to institute
When stating the connection of computer end server end, judge other computer terminals whether by identical GID and computer end server end
Set up connection;
Log in judged result processing module, for receive log in judge module judged result, if other computer terminals not with computer
End server end sets up connection, then send game data to the computer terminal;If other computer terminals and computer end server end
Connection is set up, is then disconnected and being connected with the communication of other computer terminals, and send game data to the computer terminal.
13. according to claim 11 or 12 computer end and mobile terminal game in data interchange system, it is characterised in that:Also
Including a HTTP server end;The HTTP server end, for by global association table, record to preserve computer end service
Device end and the incidence relation of mobile terminal server end;
When the computer end server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
14. according to claim 11 computer end and mobile terminal game in data interchange system, it is characterised in that:The electricity
Brain end server end also includes:
Fight judge module, for when computer end server end sends game data to computer terminal, judging user whether in electricity
Brain terminal is fought;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer
End server end sends log-on message to computer terminal;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server end by fight field data send to computer terminal;Otherwise, then it is done directly login;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and the control right transfer that will fight
To computer terminal;
The computer terminal also includes:
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to computer end server end.
A kind of computer end server end of 15. games systems, it is characterised in that:Including:
Log-on message receiver module, for receiving the landing request information of computer terminal;
Judge request module, for sending solicited message to mobile terminal server end, ask the mobile terminal server end to judge institute
Mobile terminal is stated whether by using the connection set up with computer terminal identical GID with the mobile terminal server end;
Judged result receiving processing module, for receiving the judged result of mobile terminal server end;When the mobile terminal not with shifting
Moved end server end sets up connection, then by transmission game data to computer terminal;When mobile terminal and mobile terminal server end are set up
Connection, then send and disconnect request to mobile terminal server end, and request mobile terminal server end disconnects and being connected with the communication of mobile terminal,
And game data is sent to computer terminal.
16. according to claim 15 games system computer end server end, it is characterised in that:Also include
Judge module is logged in, for being logged in computer terminal by GID as user, is set up to the computer end server end
Connection when, judge that whether other computer terminals are connected by identical GID with the foundation of computer end server end;
Log in judged result processing module, for receive log in judge module judged result, if other computer terminals not with computer
End server end sets up connection, then send game data to the computer terminal;If other computer terminals and computer end server end
Connection is set up, is then disconnected and being connected with the communication of other computer terminals, and send game data to the computer terminal.
17. according to claim 16 games system computer end server end, it is characterised in that:Also include
Fight judge module, for when computer end server sends game data to computer terminal, judging user whether in computer
Terminal is fought;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer end
Server sends log-on message to computer terminal;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server by fight field data send to computer terminal;Otherwise, then it is done directly login;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and the control right transfer that will fight
To computer terminal.
A kind of 18. computer terminals of games system, it is characterised in that:Including
Logging request module, for sending landing request information to computer end server end;
Data reception module, for receiving the game data information of computer end server end transmission;
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to computer end server end.
The system of data interchange in a kind of 19. computer terminals and game of mobile terminal, it is characterised in that:Including computer end server
End, computer terminal, mobile terminal server end and mobile terminal;
The mobile terminal server end, including:
Log-on message receiver module, for receiving the landing request information of mobile terminal;
Judge request module, for sending solicited message to computer end server end, ask the computer end server end to judge institute
Computer terminal is stated whether by using the connection set up with mobile terminal identical GID with the computer end server end;
Judged result receiving processing module, for receiving the judged result of computer end server end;When computer terminal not with computer end
Server end sets up connection, then asked to computer end server end by transmission game data;If computer terminal and computer end server
Connection is set up at end, then send and disconnect request to computer end server end, and request computer end server end disconnects and computer terminal
Communication connection, and game data is asked to computer end server end;
Game data reception module, for receiving the game data of computer end server end;
Game data sending module, for the game data of game data reception module to be forwarded to into the mobile terminal.
The mobile terminal, including:
Logging request module, for sending landing request information to mobile terminal server end;
Data reception module, for receiving the game data information that mobile terminal server end sends;
The computer end server end, including:
Judge request receiving module, for receiving the judgement solicited message of mobile terminal server end, and whether computer terminal is passed through
Using being judged with mobile terminal identical GID;
Judged result sending module, for the judged result of the judgement request module to be sent to mobile terminal server end;
Request receiving processing module is disconnected, for receiving the disconnection solicited message of mobile terminal server end, and is disconnected and computer terminal
Communication connection;
Data transmission blocks, for according to the request of data of mobile terminal server end, sending game data to mobile terminal server end.
20. according to claim 19 computer end and mobile terminal game in data interchange system, it is characterised in that:The shifting
Moved end server end also includes:
Judge module is logged in, for being logged in mobile terminal by GID as user, is set up to the mobile terminal server end
Connection when, judge that whether other mobile terminals are connected by identical GID with the foundation of mobile terminal server end;
Log in judged result processing module, for receive log in judge module judged result, if other mobile terminals not with movement
End server end sets up connection, then send game data and ask to computer end server end;If other mobile terminals take with mobile terminal
Connection is set up at business device end, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer end server
End.
21. according to claim 19 or 20 computer end and mobile terminal game in data interchange system, it is characterised in that:
Also include a HTTP server end;The HTTP server end, for by global association table, record to preserve computer end clothes
Business device end and the incidence relation of mobile terminal server end;
When the computer end server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches mobile terminal server end corresponding with the computer end server end, and sets up connection;
When the mobile terminal server end starts, global association table is downloaded from the HTTP server end, and by described complete
Office's contingency table, searches computer end server end corresponding with the mobile terminal server end, and sets up connection.
22. according to claim 21 computer end and mobile terminal game in data interchange system, it is characterised in that:The electricity
Brain end server end also includes:
Fight judge module, for when computer end server end sends game data to Mobile Server, judging that whether user exists
Fought computer terminal;
Fight judged result processing module, for receiving the judged result of fight judge module;If user is fought in computer terminal
Struggle against, then computer end server end allows user to enter the fight protection period, and by AI system adapter combat actions;Otherwise, then by computer
End server end sends log-on message to mobile terminal server end;
Fight phase judge module, for judging user whether in the fight protection period;
Fight phase judged result processing module, for receiving the judged result of fight phase judge module, if user is in fight protection
Phase, then computer end server end by fight field data send to mobile terminal server end;Otherwise, log-on message is sent to movement
End server end;The mobile terminal server end by data transmission blocks sends the fight field data for receiving to movement eventually
End;
Fight control data receiving processing module, for receiving the fight control data of computer terminal, and fight control Jing is moved
Moved end server end is transferred to mobile terminal;
The mobile terminal also includes:
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to mobile terminal server end, and by the mobile terminal server
End is sent to computer end server end.
A kind of mobile terminal server end of 23. games systems, it is characterised in that:Including:
Log-on message receiver module, for receiving the landing request information of mobile terminal;
Judge request module, for sending solicited message to computer end server end, ask the computer end server end to judge institute
Computer terminal is stated whether by using the connection set up with mobile terminal identical GID with the computer end server end;
Judged result receiving processing module, for receiving the judged result of computer end server end;When computer terminal not with computer end
Server end sets up connection, then asked to computer end server end by transmission game data;If computer terminal and computer end server
Connection is set up at end, then send and disconnect request to computer end server end, and request computer end server end disconnects and computer terminal
Communication connection, and game data is asked to computer end server end;
Game data reception module, for receiving the game data of computer end server end;
Game data sending module, for the game data of game data reception module to be forwarded to into the mobile terminal.
24. according to right 21 games system mobile terminal server end, it is characterised in that:Also include:
Judge module is logged in, for being logged in mobile terminal by GID as user, is set up to the mobile terminal server
During connection, judge whether other mobile terminals are set up by identical GID with mobile terminal server end and be connected;
Log in judged result processing module, for receive log in judge module judged result, if other mobile terminals not with movement
End server end sets up connection, then send game data and ask to computer end server end;If other mobile terminals take with mobile terminal
Connection is set up at business device end, then disconnect and being connected with the communication of other mobile terminals, and send game data and ask to computer end server
End.
A kind of 25. mobile terminals of games system, it is characterised in that:Including:
Logging request module, for sending landing request information to mobile terminal server end;
Data reception module, for receiving the game data information that mobile terminal server end sends;
Field data recovery module, for recovering fight scene according to the field data for receiving;
Fight control data module, for sending fight control data to mobile terminal server end, and by the mobile terminal server
End is sent to computer end server end.
26. according to claim 25 games system mobile terminal, it is characterised in that:Also include:
Fight parsing module, for parsing received fight protocol data;
Fight logic module, for by fight agreement, order to be performed in the form of queue, fight animation is broadcast in units of bout
Put.
27. according to claim 26 games system mobile terminal, it is characterised in that:Also include region division display module,
It is divided into for mobile terminal display screen curtain:Battle field, chat area and feature operation region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706949.8A CN106606865B (en) | 2015-10-27 | 2015-10-27 | Method and system for data intercommunication in game, terminal and server thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706949.8A CN106606865B (en) | 2015-10-27 | 2015-10-27 | Method and system for data intercommunication in game, terminal and server thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106606865A true CN106606865A (en) | 2017-05-03 |
CN106606865B CN106606865B (en) | 2020-01-03 |
Family
ID=58615478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510706949.8A Active CN106606865B (en) | 2015-10-27 | 2015-10-27 | Method and system for data intercommunication in game, terminal and server thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106606865B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132812A (en) * | 2017-12-21 | 2018-06-08 | 维沃移动通信有限公司 | A kind of method of data synchronization, mobile terminal and server |
CN109529357A (en) * | 2018-11-21 | 2019-03-29 | 北京像素软件科技股份有限公司 | Troop's data processing method and device |
CN110465081A (en) * | 2018-05-10 | 2019-11-19 | 休欧奇环球有限公司 | System and method for playing online game |
CN111228811A (en) * | 2020-02-13 | 2020-06-05 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and medium |
CN111282267A (en) * | 2020-02-11 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Information processing method, information processing apparatus, information processing medium, and electronic device |
CN112433870A (en) * | 2020-12-01 | 2021-03-02 | 网易(杭州)网络有限公司 | Data calling method and device, computer readable storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863061A (en) * | 2005-09-28 | 2006-11-15 | 华为技术有限公司 | Method of automatically recovering of mobile terminal on internet game interrupting and system thereof |
US20100151947A1 (en) * | 2005-11-30 | 2010-06-17 | Konami Digital Entertainment Co., Ltd. | Game system, server and terminal |
CN104657203A (en) * | 2013-11-21 | 2015-05-27 | 腾讯科技(深圳)有限公司 | Task execution method, device and system |
CN104717542A (en) * | 2015-03-26 | 2015-06-17 | 海信集团有限公司 | Method, device and system for obtaining synchronization information of intelligent television |
CN104765793A (en) * | 2015-03-24 | 2015-07-08 | 广东欧珀移动通信有限公司 | Software recommending method and server |
US20150235251A1 (en) * | 2014-02-18 | 2015-08-20 | Gree, Inc. | Method for providing incentive, server, and non-transitory computer-readable recording medium |
-
2015
- 2015-10-27 CN CN201510706949.8A patent/CN106606865B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863061A (en) * | 2005-09-28 | 2006-11-15 | 华为技术有限公司 | Method of automatically recovering of mobile terminal on internet game interrupting and system thereof |
US20100151947A1 (en) * | 2005-11-30 | 2010-06-17 | Konami Digital Entertainment Co., Ltd. | Game system, server and terminal |
CN104657203A (en) * | 2013-11-21 | 2015-05-27 | 腾讯科技(深圳)有限公司 | Task execution method, device and system |
US20150235251A1 (en) * | 2014-02-18 | 2015-08-20 | Gree, Inc. | Method for providing incentive, server, and non-transitory computer-readable recording medium |
CN104765793A (en) * | 2015-03-24 | 2015-07-08 | 广东欧珀移动通信有限公司 | Software recommending method and server |
CN104717542A (en) * | 2015-03-26 | 2015-06-17 | 海信集团有限公司 | Method, device and system for obtaining synchronization information of intelligent television |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132812A (en) * | 2017-12-21 | 2018-06-08 | 维沃移动通信有限公司 | A kind of method of data synchronization, mobile terminal and server |
CN110465081A (en) * | 2018-05-10 | 2019-11-19 | 休欧奇环球有限公司 | System and method for playing online game |
CN109529357A (en) * | 2018-11-21 | 2019-03-29 | 北京像素软件科技股份有限公司 | Troop's data processing method and device |
CN111282267A (en) * | 2020-02-11 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Information processing method, information processing apparatus, information processing medium, and electronic device |
CN111228811A (en) * | 2020-02-13 | 2020-06-05 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and medium |
CN111228811B (en) * | 2020-02-13 | 2021-08-10 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and medium |
CN112433870A (en) * | 2020-12-01 | 2021-03-02 | 网易(杭州)网络有限公司 | Data calling method and device, computer readable storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106606865B (en) | 2020-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106606865A (en) | Game data intercommunicating method, game data intercommunicating system, terminals and servers | |
US11266913B2 (en) | Method and apparatus for synchronously displaying game content and storage medium | |
CN107404514A (en) | Data processing method and device | |
US20070060342A1 (en) | Button encounter system | |
CN106730836A (en) | A kind of method and system of reduction ARPG gaming network time delays | |
KR20180008620A (en) | Information processing method, terminal and computer storage medium | |
US11975266B2 (en) | Attribute value restoration method and apparatus, storage medium, and electronic device | |
US7980949B2 (en) | Guard condition system | |
CN110841277B (en) | Control method and device of virtual operation object based on touch screen and storage medium | |
CN108144303A (en) | Exchange method and device, storage medium and electronic device between account number of playing | |
US20170140209A1 (en) | Image recognition method and device for game | |
CN110711380A (en) | State processing method and related device | |
CN112691376B (en) | Virtual object control method and device, storage medium and electronic equipment | |
CN104009969B (en) | A kind of means of communication of network game system | |
CN108295470B (en) | Virtual application control method and device, storage medium and electronic device | |
CN103581197B (en) | Cross-server realizes the method and system of team's data processing | |
CN110507988A (en) | A kind of game broken string Auto-reconnect method and system | |
CN112107856B (en) | Hit feedback method and device, storage medium and electronic equipment | |
WO2023226565A1 (en) | Virtual character tracing method and apparatus, storage medium, device and program product | |
US20230302370A1 (en) | Voice playing method, voice transmission method, apparatuses, and electronic device | |
WO2014035004A1 (en) | Method and system for switching to game artificial intelligence when communication error occurs in online mobile game | |
CN110743167A (en) | Method and device for realizing interactive function | |
CN104778085A (en) | Method and device for processing game fight of hand-tour | |
KR101206604B1 (en) | Peer to peer communication method between online game clients | |
US20240001246A1 (en) | Online gaming anti-cheat system |
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 |