CN110327625A - Processing method, device, processor, terminal and the server of file - Google Patents
Processing method, device, processor, terminal and the server of file Download PDFInfo
- Publication number
- CN110327625A CN110327625A CN201910612069.2A CN201910612069A CN110327625A CN 110327625 A CN110327625 A CN 110327625A CN 201910612069 A CN201910612069 A CN 201910612069A CN 110327625 A CN110327625 A CN 110327625A
- Authority
- CN
- China
- Prior art keywords
- fight
- ready
- server
- code file
- function
- 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
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between 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
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—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
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- 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
- A63F13/90—Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
- A63F13/95—Storage media specially adapted for storing game information, e.g. video game cartridges
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of processing method of file, device, processor, terminal and servers.This method comprises: obtaining code file ready for use, wherein code file ready for use is used to provide the fight service with fight function association needed for going game type;If it is determined that going game mode is client single machine combat model, then code file ready for use is run on the client to execute fight logic.The present invention solve in the related technology provided by game fight implementation cannot be considered in terms of client game data safety and server hardware resource load the technical issues of.
Description
Technical field
The present invention relates to computer fields, in particular to a kind of processing method of file, device, processor, terminal
And server.
Background technique
Non-player role (NPC) typically refers to the game role not manipulated by game player in game.Player fights environment
(PVE) the NPC monster and BOSS that player's challenge games program in gaming is controlled are typically referred to.Player fights player (PVP)
Typically refer to the interaction sports that player utilizes mutually game resource to attack and formed.
Configuration combat system is usually required during development of games.The combat system can usually be drawn according to fight type
It is divided into single PVE fight, more people PVP fight and more people PVE fight.One basic course of battle generally comprises the person of excuting a law and releases
Put technical ability, target selection, injury calculating, hatred clearing, displacement and technical ability performance.The top layer of combat system be client with
The division of labor of server, wherein client is responsible for receiving fight instruction and carries out fight effect performance according to the driving of server, and
Server is then mainly responsible for logical drive.
Currently, fight implementation usually may include following two in game provided by the related technology:
Mode one, server fight, i.e. networking fight realize that fight logic, the skilled clearing logic of institute are equal in server
It is driven by server, and determines that the fight effect of client shows by server, which can flexibly support more people PVP to fight
Bucket, Information Security can be effectively prevented plug-in.
However, the obvious shortcoming of which is: since all fight logics are required to realize in server, in net
It in the case that network situation is poor, is delayed very high, thus can seriously affect the fight experience in game;Meanwhile when online player compared with
It is more, when fight quantity is more, great load can be brought to the hardware resource of server.Especially in the new hand's religion for opening the stage of clothes
It learns in fight, if each player is separately turned on a server fight, will definitely increase server hardware resource overhead,
Thus the ability to bear of server can be seriously affected.
Mode two, client fight, i.e. single machine are fought, and realize fight logic, the skilled clearing logic sum of institute in client
Effect of fighting performance is locally realized in client, and fight result is reported to server again after fight, which
Operation is smooth, is not delayed, and the fight experience in game is good.
However, the obvious shortcoming of which is: since all fight logics are required to locally realize in client,
It can not be suitable for more people PVP to fight, and player is easy to distort game data by plug-in fraudulent means.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The present invention at least partly embodiment provides processing method, device, processor, terminal and the service of a kind of file
Device cannot be considered in terms of the game data safety of client at least to solve fight implementation in provided game in the related technology
The technical issues of hardware resource load of property and server.
A wherein embodiment according to the present invention, provides a kind of processing method of file, comprising:
Obtain code file ready for use, wherein code file ready for use is for needed for offer and going game type
The fight service of fight function association;If it is determined that going game mode is client single machine combat model, then on the client
Code file ready for use is run to execute fight logic.
Optionally, running code file ready for use on the client to execute fight logic includes: by client generation
The first communication interface encapsulated in reason accesses code file ready for use;According to pending fight function in code ready for use
Method of calling ready for use is determined in file, and executes fight logic according to method of calling ready for use.
Optionally, method of calling ready for use is determined in code file ready for use according to pending fight function,
And if executing fight logic according to method of calling ready for use includes: according to pending fight function in code ready for use
It is determined in file using local method of calling, then obtains invocation protocol title corresponding with pending fight function;Utilize tune
Corresponding client local function is searched with protocol name;Client local function is called to execute fight logic.
Optionally, method of calling ready for use is determined in code file ready for use according to pending fight function,
And if executing fight logic according to method of calling ready for use includes: according to pending fight function in code ready for use
It is determined in file and uses far call mode, then obtain invocation protocol title corresponding with pending fight function;Via to
The second communication interface encapsulated in the code file used sends invocation protocol corresponding with invocation protocol title to server, with
So that server by utilizing invocation protocol title is searched corresponding server local function, simultaneously invoking server local function executes fight
Logic.
Optionally, run code file ready for use on the client with execute fight logic before, further includes: receive come
From in the initialization combat data of server.
Optionally, run code file ready for use on the client with execute fight logic after, further includes: via to
The second communication interface encapsulated in the code file used reports fight result to server.
A wherein embodiment according to the present invention, additionally provides the processing method of another file, comprising:
Obtain code file ready for use, wherein code file ready for use is for needed for offer and going game type
The fight service of fight function association;If it is determined that going game mode is server online combat model, then on the server
Code file ready for use is run to execute fight logic.
Optionally, running code file ready for use on the server to execute fight logic includes: to pass through server generation
The third communication interface encapsulated in reason accesses code file ready for use;According to pending fight function in code ready for use
Method of calling ready for use is determined in file, and executes fight logic according to method of calling ready for use.
Optionally, method of calling ready for use is determined in code file ready for use according to pending fight function,
And if executing fight logic according to method of calling ready for use includes: according to pending fight function in code ready for use
It is determined in file using local method of calling, then obtains invocation protocol title corresponding with pending fight function;Utilize tune
Corresponding server local function is searched with protocol name;Invoking server local function executes fight logic.
Optionally, method of calling ready for use is determined in code file ready for use according to pending fight function,
And if executing fight logic according to method of calling ready for use includes: according to pending fight function in code ready for use
It is determined in file and uses far call mode, then obtain invocation protocol title corresponding with pending fight function;Via to
The fourth communication interface encapsulated in the code file used sends invocation protocol corresponding with invocation protocol title to client, with
So that client is searched corresponding client local function using invocation protocol title and client local function is called to execute fight
Logic.
Optionally, run code file ready for use on the server with execute fight logic before, further includes: via clothes
The third communication interface encapsulated in business device agency issues initialization combat data.
Optionally, run code file ready for use on the client with execute fight logic after, further includes: via to
The second communication interface encapsulated in the code file used receives fight result.
A wherein embodiment according to the present invention, additionally provides a kind of processing unit of file, comprising:
Module is obtained, for obtaining code file ready for use, wherein code file ready for use is for providing and currently
The fight service of fight function association needed for type of play;Processing module is used for if it is determined that going game mode is client
Single machine combat model runs code file ready for use on the client then to execute fight logic.
Optionally, processing module includes: access unit, is visited for the first communication interface by encapsulating in Client Agent
Ask code file ready for use;Processing unit, for being determined in code file ready for use according to pending fight function
Method of calling ready for use, and fight logic is executed according to method of calling ready for use.
Optionally, processing unit includes: the first acquisition subelement, if for according to pending fight function wait make
It is determined in code file using local method of calling, then obtains invocation protocol name corresponding with pending fight function
Claim;Subelement is searched, for searching corresponding client local function using invocation protocol title;Subelement is called, for adjusting
Fight logic is executed with client local function.
Optionally, processing unit includes: the second acquisition subelement, if for according to pending fight function wait make
It is determined in code file and uses far call mode, then obtain invocation protocol name corresponding with pending fight function
Claim;Transmission sub-unit, for sending and calling to server via the second communication interface encapsulated in code file ready for use
The corresponding invocation protocol of protocol name, so that server by utilizing invocation protocol title is searched corresponding server local function and adjusted
Fight logic is executed with server local function.
Optionally, above-mentioned apparatus further include: receiving module, for receiving the initialization combat data from server.
Optionally, above-mentioned apparatus further include: reporting module, for logical via second encapsulated in code file ready for use
Believe that interface reports fight result to server.
A wherein embodiment according to the present invention, additionally provides the processing unit of another file, comprising:
Module is obtained, for obtaining code file ready for use, wherein code file ready for use is for providing and currently
The fight service of fight function association needed for type of play;Processing module is used for if it is determined that going game mode is server
Online combat model runs code file ready for use on the server then to execute fight logic.
Optionally, processing module includes: access unit, is visited for the third communication interface by encapsulating in server agent
Ask code file ready for use;Processing unit, for being determined in code file ready for use according to pending fight function
Method of calling ready for use, and fight logic is executed according to method of calling ready for use.
Optionally, processing unit includes: the first acquisition subelement, if for according to pending fight function wait make
It is determined in code file using local method of calling, then obtains invocation protocol name corresponding with pending fight function
Claim;Subelement is searched, for searching corresponding server local function using invocation protocol title;Subelement is called, for adjusting
Fight logic is executed with server local function.
Optionally, processing unit includes: the second acquisition subelement, if for according to pending fight function wait make
It is determined in code file and uses far call mode, then obtain invocation protocol name corresponding with pending fight function
Claim;Transmission sub-unit, for sending and calling to client via the fourth communication interface encapsulated in code file ready for use
The corresponding invocation protocol of protocol name, so that client is searched corresponding client local function using invocation protocol title and adjusted
Fight logic is executed with client local function.
Optionally, above-mentioned apparatus further include: module is issued, for via the third communication interface encapsulated in server agent
Issue initialization combat data.
Optionally, above-mentioned apparatus further include: receiving module, for logical via second encapsulated in code file ready for use
Believe interface fight result.
A wherein embodiment according to the present invention additionally provides a kind of storage medium, and storage medium includes the program of storage,
In, in program operation, equipment where control storage medium executes the processing method of the file of above-mentioned any one.
A wherein embodiment according to the present invention additionally provides a kind of processor, and processor is for running program, wherein journey
The processing method of the file of above-mentioned any one is executed when sort run.
A wherein embodiment according to the present invention, additionally provides a kind of terminal, comprising: one or more processors, memory,
Display device and one or more program, wherein one or more programs are stored in memory, and be configured as by
One or more processors execute, and one or more programs are used to execute the processing method of the file of above-mentioned any one.
A wherein embodiment according to the present invention, additionally provides a kind of server, comprising: one or more processors, storage
Device and one or more program, wherein one or more programs are stored in memory, and be configured as by one or
Multiple processors execute, and one or more programs are used to execute the processing method of the file of above-mentioned any one.
In the present invention at least partly embodiment, using acquisition code file ready for use, the code file ready for use
For providing the mode with the fight service of fight function association needed for going game type, it is by determining going game mode
Client single machine combat model runs code file ready for use on the client to execute fight logic, has reached according to reality
Border game mode neatly take into account in the purpose of one of server and client execution fight logic to realize by decision
The game data safety of the client and hardware resource load of server, versatility be higher, the stronger technology of scalability is imitated
Fruit, and then solve fight implementation in provided game in the related technology and cannot be considered in terms of the game data safety of client
The technical issues of hardware resource load of property and server.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is that wherein the logical abstraction that will fight of an alternative embodiment is the schematic diagram serviced of fighting according to the present invention;
Fig. 2 be according to the present invention wherein the both-end of the client of an alternative embodiment and server fight block schematic illustration;
Fig. 3 is the wherein flow chart of the processing method of the file of an embodiment according to the present invention;
Fig. 4 is the wherein flow chart of the processing method of another file of an embodiment according to the present invention;
Fig. 5 is the wherein structural block diagram of the processing unit of the file of an embodiment according to the present invention;
Fig. 6 is the wherein structural block diagram of the processing unit of the file of an alternative embodiment according to the present invention;
Fig. 7 is the wherein structural block diagram of the processing unit of another file of an embodiment according to the present invention;
Fig. 8 is the wherein structural block diagram of the processing unit of another file of an alternative embodiment according to the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
A wherein embodiment according to the present invention, provides a kind of embodiment of the processing method of file, it should be noted that
Step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, and
It, in some cases, can be to be different from sequence execution institute herein and although logical order is shown in flow charts
The step of showing or describing.
This method embodiment can execute in terminal (such as: mobile terminal, terminal) or server.Terminal
(or server) may include that (processor can include but is not limited to central processing unit (CPU), figure to one or more processors
The processing of processor (GPU), Digital Signal Processing (DSP) chip, microprocessor (MCU) or programmable logic device (FPGA) etc.
Device), memory for storing data and the transmitting device for communication function.It in addition to this, can also include: aobvious
Show that device, input/output interface (I/O interface), the port universal serial bus (USB) (can be used as one in the port of I/O interface
A port is included), network interface, power supply and/or camera.It will appreciated by the skilled person that above structure describes
Only illustrate, the structure of above-mentioned terminal (or server) is not caused to limit.For example, terminal (or server) may also include
More perhaps less component is described than above structure or with describing different configurations from above structure.
It is to be noted that said one or multiple processors and/or other data processing circuits usually may be used herein
To be referred to as " data processing circuit ".The data processing circuit all or part of can be presented as software, hardware, firmware or its
His any combination.In addition, data processing circuit for single independent processing module or all or part of can be integrated to terminal
In any one in other elements in (or server).As involved in the embodiment of the present application, data processing electricity
Road controls (such as the selection for the variable resistance end path connecting with interface) as a kind of processor.
Memory can be used for storing the software program and module of application software, such as the place of the file in the embodiment of the present invention
Corresponding program instruction/the data storage device of reason method, processor by the software program that is stored in memory of operation and
Module realizes the processing method of above-mentioned file thereby executing various function application and data processing.Memory may include
High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its
His non-volatile solid state memory.In some instances, memory can further comprise depositing relative to processor is remotely located
Reservoir, these remote memories can pass through network connection to terminal (or server).The example of above-mentioned network includes but unlimited
In internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device is used to that data to be received or sent via a network.Above-mentioned network specific example may include terminal
The wireless network that the communication providers of (or server) provide.In an example, transmitting device includes a network adapter
(Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments so as to
It is communicated with internet.In an example, transmitting device can be radio frequency (Radio Frequency, referred to as RF) mould
Block is used to wirelessly be communicated with internet.
Display can such as touch-screen type liquid crystal display (LCD), the liquid crystal display aloow user with
The user interface of terminal (or server) interacts.In some embodiments, above-mentioned terminal (or server) has to touch and show
Show device (also referred to as " touch screen " or " touch display screen ").In some embodiments, above-mentioned terminal (or server) has figure
Shape user interface (GUI), user can carry out man-machine friendship with GUI by the contact of the finger on touch sensitive surface and/or gesture
Mutually, human-computer interaction function herein optionally includes following interaction: creation webpage, drawing, word processing, production electronic document,
Game video conference, instant messaging, sends and receive e-mail, call interface, plays digital video, playback digital music and/or net
Network browsing etc., for execute the executable instruction of above-mentioned human-computer interaction function be configured/be stored in one or more processors can
In the computer program product or readable storage medium storing program for executing of execution.
Above-mentioned terminal can be smart phone (such as Android phone, iOS mobile phone), tablet computer, applause computer and
The terminal devices such as mobile internet device (Mobile Internet Devices, referred to as MID), PAD.Above-mentioned server can
To be the service equipments such as game server, security server.
Fig. 1 is that wherein the logical abstraction that will fight of an alternative embodiment is the schematic diagram serviced of fighting according to the present invention, such as
Shown in Fig. 1, based on the both-end of client and server fight frame, fight logical abstraction is serviced at an independent fight
(FightServer), it is a set of fight logical code, can be run in client and server.Fight service is (i.e. above-mentioned
Code file ready for use) it is construed as an independent code logic module, it is responsible for providing an independent fight meter
Service is calculated, and independent of specific physical entity, therefore, server and client side, which can become, carries the fight service
Physical entity.Online fight (OnlineFight) is run in server, in client operation single machine fight
(StandaloneFight), intermediate common portion fight service is the common sparing of client and server.Due to server with
Client shares a set of fight logic, it is therefore not necessary to write different logics respectively for client and server.Moreover,
After fight terminates, whether server can legal by verifying the single machine fight of client, and then is effectively prevented plug-in etc.
Fraudulent means.
It should be noted that above-mentioned code file ready for use is stored in and deposits for client and the public of server access
Storage space (such as: third-party server), and need to only safeguard a code file.Then, in packing process, by it is above-mentioned to
The code file used is distributed to client and server.That is, client be stored with respectively on server it is above-mentioned ready for use
The backup file of code file.
Fig. 2 be according to the present invention wherein the both-end of the client of an alternative embodiment and server fight block schematic illustration,
As shown in Fig. 2, game server (GameServer) mainly passes through trip in the both-end of client and server fight frame
Communication interaction is carried out between play server agent (GameServer Agent, referred to as GSAgent) and fight service.Fight visitor
Family end (FightClient), it is main to pass through fight Client Agent (FightClient Agent, referred to as FCAgent) and war
Communication interaction is carried out between bucket service.Include the relevant repertoire module of fight in fight service, is respectively as follows: fight mould
Block (Fight Module), soldier's module (Warrior Module), technical ability module (Skill Module), artificial intelligence module
(AI Module), settlement module (Perform Module), fight service broker (FightServer Agent, referred to as
FSAgent).The function that modules are implemented is as follows:
(1) fight module is responsible for the progress of management fight, comprising: start to fight, finish the battle;
(2) soldier's module is responsible for each player and monster in management fight;
(3) technical ability module is responsible for the specific implementation of each technical ability effect in fight;
(4) AI module is responsible for the AI of monster;
(5) settlement module is responsible for the clearing injured in fight;
(6) fight service broker, is responsible for carrying out communication interaction between server or client.
It should be noted that it will appreciated by the skilled person that frame structure shown in Fig. 2 be only illustrate,
The structure of above-mentioned both-end fight frame is not caused to limit.For example, both-end is fought, frame may also include more than shown in Fig. 2
Perhaps less module or with the configuration different from shown in Fig. 2.
A kind of processing method of file for running on above-mentioned terminal is provided in the present embodiment, and Fig. 3 is according to the present invention
The wherein flow chart of the processing method of the file of an embodiment, as shown in figure 3, this method comprises the following steps:
Step S32 obtains code file ready for use, wherein code file ready for use is for offer and going game
The fight service of fight function association needed for type;
Step S34, if it is determined that going game mode is client single machine combat model, then is run on the client wait make
Code file is to execute fight logic.
Through the above steps, can be using code file ready for use be obtained, the code file ready for use is for providing
It is client list by determining going game mode with the mode of the fight service of fight function association needed for going game type
Machine combat model runs code file ready for use on the client to execute fight logic, has reached according to actual play mould
Neatly decision takes into account client to realize in the purpose of one of server and client execution fight logic to formula
The game data safety and hardware resource load of server, versatility be higher, the stronger technical effect of scalability, and then solve
The interior fight implementation of provided game in the related technology of having determined cannot be considered in terms of the game data safety and service of client
The technical issues of hardware resource load of device.
Optionally, in step S34, code file ready for use is run on the client to execute fight logic and can wrap
Include step performed below:
Step S341 accesses code file ready for use by the first communication interface encapsulated in Client Agent;
Step S342 determines called side ready for use according to pending fight function in code file ready for use
Formula, and fight logic is executed according to method of calling ready for use.
Client single machine combat model usually may include: single PVE fight, open a large amount of new hand's teaching fight when taking.
For combat model is single PVE fight, fight logic can be realized in client, to realize that single machine is fought, thus not
It is tested by network jitter and delay game civil war bucket body.For a large amount of new hand imparts knowledge to students fight when taking for opening, it can use
Client single machine fight, to mitigate the hardware resource load of server.
SendMsgToFightServer interface (being equivalent to above-mentioned first communication interface) is packaged in Client Agent
In order to carry out communication interaction between client and fight service.According to pending fight function in code file ready for use
Middle determination method of calling ready for use.That is, if pending fight function locally can be realized in client, to be used
Code file in determine using local method of calling;It could be real in server local if pending fight function is needed
It is existing, then it is determined in code file ready for use and uses far call mode.
Optionally, it in step S342, is determined in code file ready for use wait make according to pending fight function
Method of calling, and executing fight logic according to method of calling ready for use may include step performed below:
Step S3421 is adjusted if determined in code file ready for use according to pending fight function using local
With mode, then invocation protocol title corresponding with pending fight function is obtained;
Step S3422 searches corresponding client local function using invocation protocol title;Call client local function
Execute fight logic.
In one alternate embodiment, above-mentioned invocation protocol selects remote procedure call (Remote Procedure
Call, referred to as RPC) agreement, service is requested from remote computer program by network to be a kind of, without understanding bottom
The agreement of network technology.Either the single machine of client is still used to fight using the online fight of server, fight service is all
It is that communication interaction is carried out by fight service broker and client or server.
If using the single machine fight of client and true in code file ready for use according to pending fight function
It is fixed that using local method of calling, then client first obtains RPC protocol name corresponding with pending fight function, further according to
RPC protocol name searches corresponding client local function, executes and the fight function finally by calling client local function
It can corresponding fight logic.
Optionally, it in step S342, is determined in code file ready for use wait make according to pending fight function
Method of calling, and executing fight logic according to method of calling ready for use may include step performed below:
Step S3423 is adjusted if determined in code file ready for use according to pending fight function using long-range
With mode, then invocation protocol title corresponding with pending fight function is obtained;
Step S3424 sends and calls to server via the second communication interface encapsulated in code file ready for use
The corresponding invocation protocol of protocol name, so that server by utilizing invocation protocol title is searched corresponding server local function and adjusted
Fight logic is executed with server local function.
For the uplink communication agreement between fight service versus server, it is packaged with SendMsgToGameServer interface
(being equivalent to above-mentioned second communication interface).If using the single machine fight of client and according to pending fight function wait make
It is determined in code file and uses far call mode, then client can be by encapsulating in fight service
SendMsgToGameServer interface is initiated RPC agreement to server and is called, so that server first obtains and pending fight
The corresponding RPC protocol name of function searches corresponding server local function further according to RPC protocol name, finally by calling
Server local function executes fight logic corresponding with the fight function.Such as: initiating one when user end to server makes
When being requested with article, it will usually be called in the agreement that client initiates the entitled use_item of RPC, server is receiving
After the agreement, it will search the corresponding function of server local according to RPC protocol name use_item, then call the function
To complete a RPC far call.
Optionally, before running code file ready for use on step S34, client to execute fight logic, may be used also
To include step performed below:
Step S33 receives the initialization combat data from server.
Based on the both-end of client and server fight frame, is either still used and taken using the single machine fight of client
The online fight of business device, the beginning of fight are initiated by game server, while game server will count needed for initialization fight
It is sent to fight service according to (FightInitData), thus all fight logics can all execute in fight service.Game visitor
Family end be responsible for collect player operational order and report to fight service, then receive again fight service feedback fight instruction with
Play corresponding fight effect performance.
Optionally, after running code file ready for use on step S34, client to execute fight logic, may be used also
To include step performed below:
Step S35 reports fight result to server via the second communication interface encapsulated in code file ready for use.
After fight terminates, fight result can be sent to by fight service by SendMsgToGameServer interface
Game server completes a fight with this.
In addition, need to check whether operational order is effective during game client collects the operational order of player,
Such as: when using technical ability, the cooling duration of technical ability whether then, when using article, number of articles whether abundance etc..Such as
It there are relation of interdependence between fruit part operational order, needs successively to execute, then game client can refer to this part operation
Order is put into caching and executes.
The heartbeat detection logic of fight can be set in fight service, usually detection in 0.1 second or 1 second is primary,
Detection duration can be neatly adjusted according to type of play difference.In addition, also needing to check that technical ability whether can in fight service
Enough normal release.Such as: if encounter the cooling duration of technical ability not yet terminate, discharge the deficiency of Mana needed for technical ability, releaser or
The abnormal cases such as target of attack death, then releaser will be unable to normally discharge technical ability.
A kind of processing method of file for running on above-mentioned server is additionally provided in the present embodiment, and Fig. 4 is according to this
The flow chart of the invention wherein processing method of another file of an embodiment, as shown in figure 4, this method comprises the following steps:
Step S42 obtains code file ready for use, wherein code file ready for use is for offer and going game
The fight service of fight function association needed for type;
Step S44, if it is determined that going game mode is server online combat model, then is run on the server wait make
Code file is to execute fight logic.
Through the above steps, can be using code file ready for use be obtained, the code file ready for use is for providing
It is server connection by determining going game mode with the mode of the fight service of fight function association needed for going game type
Machine combat model runs code file ready for use on the server to execute fight logic, has reached according to actual play mould
Neatly decision takes into account client to realize in the purpose of one of server and client execution fight logic to formula
The game data safety and hardware resource load of server, versatility be higher, the stronger technical effect of scalability, and then solve
The interior fight implementation of provided game in the related technology of having determined cannot be considered in terms of the game data safety and service of client
The technical issues of hardware resource load of device.
Optionally, in step S44, code file ready for use is run on the server to execute fight logic and can wrap
Include step performed below:
Step S441 accesses code file ready for use by the third communication interface encapsulated in server agent;
Step S442 determines called side ready for use according to pending fight function in code file ready for use
Formula, and fight logic is executed according to method of calling ready for use.
Server online combat model usually may include: more people PVP fights, more people PVE fight.It is for combat model
For more people PVP fights and more people PVE fight, fight logic can be realized in server, to realize networking fight.
SendMsgToFightServer interface is packaged in game server agency (to be equivalent to the above-mentioned third communication to connect
Mouthful) in order to game server and fight service between carry out communication interaction.According to pending fight function ready for use
Method of calling ready for use is determined in code file.That is, if pending fight function can be realized in server local,
It is determined in code file ready for use using local method of calling;If pending fight function is needed in client local
It is just able to achieve, is then determined in code file ready for use and use far call mode.
Optionally, it in step S442, is determined in code file ready for use wait make according to pending fight function
Method of calling, and executing fight logic according to method of calling ready for use may include step performed below:
Step S4421 is adjusted if determined in code file ready for use according to pending fight function using local
With mode, then invocation protocol title corresponding with pending fight function is obtained;
Step S4422 searches corresponding server local function using invocation protocol title;
Step S4423, invoking server local function execute fight logic.
If using the online fight of server and true in code file ready for use according to pending fight function
It is fixed that using local method of calling, then server first obtains RPC protocol name corresponding with pending fight function, further according to
RPC protocol name searches corresponding server local function, executes and the fight function finally by invoking server local function
It can corresponding fight logic.
Optionally, it in step S442, is determined in code file ready for use wait make according to pending fight function
Method of calling, and executing fight logic according to method of calling ready for use may include step performed below:
Step S4424 is adjusted if determined in code file ready for use according to pending fight function using long-range
With mode, then invocation protocol title corresponding with pending fight function is obtained;
Step S4425 sends and calls to client via the fourth communication interface encapsulated in code file ready for use
The corresponding invocation protocol of protocol name, so that client is searched corresponding client local function using invocation protocol title and adjusted
Fight logic is executed with client local function.
For the downlink communication agreement between fight service and client, it is packaged with SendMsgToClient interface (quite
In above-mentioned fourth communication interface).If using the online fight of server and according to pending fight function ready for use
It is determined in code file and uses far call mode, then server can be by encapsulating in fight service
SendMsgToClient interface is initiated RPC agreement to client and is called, so that client first obtains and pending fight function
Corresponding RPC protocol name searches corresponding client local function further according to RPC protocol name, finally by calling client
Local function is held to execute fight logic corresponding with the fight function.
RPC the protocol name operation and logic different commonly used in differentiation, such as: it is using the RPC protocol name of article
Use_item, the RPC protocol name using technical ability are use_skill.Assuming that the RPC agreement of server calls client be in order to
So that client, which shows one, falls blood effect, then RPC protocol name is sub_hp.In general, server sends one
The RPC agreement of entitled sub_hp is to client, and client is after receiving sub_hp, it will calls local sub_hp corresponding
The blood function that falls play off blood effect.In contrast, if the single machine using client is fought, due to the code of fight service
Client is operated in, therefore, the blood RPC agreement of falling of the sub_hp is just not necessarily to be sent to client by network, but directly exists
Client calls the local blood function that falls to play off blood effect according to RPC protocol name sub_hp.
Optionally, before running code file ready for use on step S44, server to execute fight logic, may be used also
To include step performed below:
Step S43 issues initialization combat data via the third communication interface encapsulated in server agent.
Based on the both-end of client and server fight frame, is either still used and taken using the single machine fight of client
The online fight of business device, the beginning of fight are initiated by game server, while game server passes through game server and acts on behalf of
Data (FightInitData) needed for the SendMsgToFightServer interface of middle encapsulation fights initialization are sent to fight
Service, thus all fight logics can all execute in fight service.Game client is responsible for collecting the operational order of player
And fight service is reported to, receive the fight instruction of fight service feedback again then to play corresponding fight effect performance.
Optionally, after running code file ready for use on step S44, client to execute fight logic, may be used also
To include step performed below:
Step S45 receives fight result via the second communication interface encapsulated in code file ready for use.
After fight terminates, fight result can be sent to by fight service by SendMsgToGameServer interface
Game server completes a fight with this.
In addition, need to check whether operational order is effective during game client collects the operational order of player,
Such as: when using technical ability, the cooling duration of technical ability whether then, when using article, number of articles whether abundance etc..Such as
It there are relation of interdependence between fruit part operational order, needs successively to execute, then game client can refer to this part operation
Order is put into caching and executes.
The heartbeat detection logic of fight can be set in fight service, usually detection in 0.1 second or 1 second is primary,
Detection duration can be neatly adjusted according to type of play difference.In addition, also needing to check that technical ability whether can in fight service
Enough normal release.Such as: if encounter the cooling duration of technical ability not yet terminate, discharge the deficiency of Mana needed for technical ability, releaser or
The abnormal cases such as target of attack death, then releaser will be unable to normally discharge technical ability.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
A kind of processing unit of file is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and preferably
Embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of software and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or
The realization of the combination of person's software and hardware is also that may and be contemplated.
Fig. 5 is the wherein structural block diagram of the processing unit of the file of an embodiment according to the present invention, if Fig. 5 shows, the device
It include: to obtain module 10, for obtaining code file ready for use, wherein code file ready for use is for providing and currently
The fight service of fight function association needed for type of play;Processing module 20 is used for if it is determined that going game mode is client
Single machine combat model is held, then runs code file ready for use on the client to execute fight logic.
Optionally, processing module 20 includes: access unit (not shown), for by encapsulating in Client Agent
First communication interface accesses code file ready for use;Processing unit (not shown), for according to pending fight function
Method of calling ready for use can be determined in code file ready for use, and is executed fight according to method of calling ready for use and patrolled
Volume.
Optionally, processing unit (not shown) includes: the first acquisition subelement (not shown), if being used for root
It is determined according to pending fight function using local method of calling, then obtained and pending war in code file ready for use
The corresponding invocation protocol title of the function that struggles against;Subelement (not shown) is searched, is corresponded to for being searched using invocation protocol title
Client local function;Subelement (not shown) is called, for calling client local function to execute fight logic.
Optionally, processing unit (not shown) includes: the second acquisition subelement (not shown), if being used for root
It is determined in code file ready for use according to pending fight function and uses far call mode, then obtained and pending war
The corresponding invocation protocol title of the function that struggles against;Transmission sub-unit (not shown), for via being sealed in code file ready for use
Second communication interface of dress sends invocation protocol corresponding with invocation protocol title to server, so that server by utilizing calls association
It discusses title and searches corresponding server local function and invoking server local function execution fight logic.
Optionally, Fig. 6 is the wherein structural block diagram of the processing unit of the file of an alternative embodiment according to the present invention, is such as schemed
Shown in 6, the device is in addition to including all modules shown in fig. 5, above-mentioned apparatus further include: receiving module 30 comes from for receiving
In the initialization combat data of server.
Optionally, as shown in fig. 6, above-mentioned apparatus further include: reporting module 40, for via in code file ready for use
Second communication interface of encapsulation reports fight result to server.
The processing unit of another file is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and excellent
Embodiment is selected, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 7 is the wherein structural block diagram of the processing unit of another file of an embodiment according to the present invention, if Fig. 7 shows,
The device includes: to obtain module 50, for obtaining code file ready for use, wherein code file ready for use is for providing
With the fight service for function association of fighting needed for going game type;Processing module 60, for if it is determined that going game mode
For server online combat model, then code file ready for use is run on the server to execute fight logic.
Optionally, processing module 60 includes: access unit (not shown), for by encapsulating in server agent
Third communication interface accesses code file ready for use;Processing unit (not shown), for according to pending fight function
Method of calling ready for use can be determined in code file ready for use, and is executed fight according to method of calling ready for use and patrolled
Volume.
Optionally, processing unit (not shown) includes: the first acquisition subelement (not shown), if being used for root
It is determined according to pending fight function using local method of calling, then obtained and pending war in code file ready for use
The corresponding invocation protocol title of the function that struggles against;Subelement (not shown) is searched, is corresponded to for being searched using invocation protocol title
Server local function;Subelement (not shown) is called, executes fight logic for invoking server local function.
Optionally, processing unit (not shown) includes: the second acquisition subelement (not shown), if being used for root
It is determined in code file ready for use according to pending fight function and uses far call mode, then obtained and pending war
The corresponding invocation protocol title of the function that struggles against;Transmission sub-unit (not shown), for via being sealed in code file ready for use
The fourth communication interface of dress sends invocation protocol corresponding with invocation protocol title to client, so that client utilizes calling association
View title searches corresponding client local function and client local function is called to execute fight logic.
Optionally, Fig. 8 is wherein structural frames of the processing unit of another file of an alternative embodiment according to the present invention
Figure, as shown in figure 8, the device except include all modules shown in Fig. 7 in addition to, above-mentioned apparatus further include: module 70 is issued, for passing through
Initialization combat data is issued by the third communication interface encapsulated in server agent.
Optionally, as shown in figure 8, above-mentioned apparatus further include: receiving module 80, for via in code file ready for use
Second communication interface of encapsulation receives fight result.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1 obtains code file ready for use, wherein code file ready for use is for providing and going game type institute
Need to fight the fight service of function association;
S2, if it is determined that going game mode is client single machine combat model, then runs on the client ready for use
Code file is to execute fight logic.
Optionally, in the present embodiment, above-mentioned storage medium may be also configured to store for executing following steps
Computer program:
S1 obtains code file ready for use, wherein code file ready for use is for providing and going game type institute
Need to fight the fight service of function association;
S2, if it is determined that going game mode is server online combat model, then runs on the server ready for use
Code file is to execute fight logic.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, which is arranged to run computer program to execute
Step in any of the above-described embodiment of the method.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 obtains code file ready for use, wherein code file ready for use is for providing and going game type institute
Need to fight the fight service of function association;
S2, if it is determined that going game mode is client single machine combat model, then runs on the client ready for use
Code file is to execute fight logic.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program
It is rapid:
S1 obtains code file ready for use, wherein code file ready for use is for providing and going game type institute
Need to fight the fight service of function association;
S2, if it is determined that going game mode is server online combat model, then runs on the server ready for use
Code file is to execute fight logic.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (18)
1. a kind of processing method of file characterized by comprising
Obtain code file ready for use, wherein the code file ready for use is for needed for offer and going game type
The fight service of fight function association;
If it is determined that going game mode is client single machine combat model, then the code ready for use is run on the client
File is to execute fight logic.
2. the method according to claim 1, wherein running the code text ready for use in the client
Part includes: to execute the fight logic
The code file ready for use is accessed by the first communication interface encapsulated in Client Agent;
Method of calling ready for use is determined in the code file ready for use according to pending fight function, and according to institute
It states method of calling ready for use and executes the fight logic.
3. according to the method described in claim 2, it is characterized in that, according to the pending fight function described to be used
Code file in determine the method for calling ready for use, and execute the fight according to the method for calling ready for use and patrol
It collects and includes:
If determined in the code file ready for use according to the pending fight function using local method of calling,
Then obtain invocation protocol title corresponding with the pending fight function;
Corresponding client local function is searched using the invocation protocol title;
Client local function is called to execute the fight logic.
4. according to the method described in claim 2, it is characterized in that, according to the pending fight function described to be used
Code file in determine the method for calling ready for use, and execute the fight according to the method for calling ready for use and patrol
It collects and includes:
If being determined in the code file ready for use according to the pending fight function and using far call mode,
Then obtain invocation protocol title corresponding with the pending fight function;
It is sent and the invocation protocol name via the second communication interface encapsulated in the code file ready for use to server
Claim corresponding invocation protocol, so that invocation protocol title described in the server by utilizing searches corresponding server local function simultaneously
The server local function is called to execute the fight logic.
5. the method according to claim 1, wherein running the code text ready for use in the client
Before part is to execute the fight logic, further includes:
Receive the initialization combat data from server.
6. the method according to claim 1, wherein running the code text ready for use in the client
After part is to execute the fight logic, further includes:
Fight result is reported to server via the second communication interface encapsulated in the code file ready for use.
7. a kind of processing method of file characterized by comprising
Obtain code file ready for use, wherein the code file ready for use is for needed for offer and going game type
The fight service of fight function association;
If it is determined that going game mode is server online combat model, then the code ready for use is run on the server
File is to execute fight logic.
8. the method according to the description of claim 7 is characterized in that running the code text ready for use on the server
Part includes: to execute the fight logic
The code file ready for use is accessed by the third communication interface encapsulated in server agent;
Method of calling ready for use is determined in the code file ready for use according to pending fight function, and according to institute
It states method of calling ready for use and executes the fight logic.
9. according to the method described in claim 8, it is characterized in that, according to the pending fight function described to be used
Code file in determine the method for calling ready for use, and execute the fight according to the method for calling ready for use and patrol
It collects and includes:
If determined in the code file ready for use according to the pending fight function using local method of calling,
Then obtain invocation protocol title corresponding with the pending fight function;
Corresponding server local function is searched using the invocation protocol title;
The server local function is called to execute the fight logic.
10. according to the method described in claim 8, it is characterized in that, according to the pending fight function described wait make
The method of calling ready for use is determined in code file, and executes the fight according to the method for calling ready for use
Logic includes:
If being determined in the code file ready for use according to the pending fight function and using far call mode,
Then obtain invocation protocol title corresponding with the pending fight function;
It is sent and the invocation protocol name via the fourth communication interface encapsulated in the code file ready for use to client
Claim corresponding invocation protocol, so that the client searches corresponding client local function simultaneously using the invocation protocol title
Client local function is called to execute the fight logic.
11. the method according to the description of claim 7 is characterized in that running the code ready for use on the server
Before file is to execute the fight logic, further includes:
Initialization combat data is issued via the third communication interface encapsulated in server agent.
12. the method according to the description of claim 7 is characterized in that running the code ready for use on the server
After file is to execute the fight logic, further includes:
Fight result is received via the second communication interface encapsulated in the code file ready for use.
13. a kind of processing unit of file characterized by comprising
Module is obtained, for obtaining code file ready for use, wherein the code file ready for use is for providing and currently
The fight service of fight function association needed for type of play;
Processing module, be used for if it is determined that going game mode be client single machine combat model, then run institute on the client
Code file ready for use is stated to execute fight logic.
14. a kind of processing unit of file characterized by comprising
Module is obtained, for obtaining code file ready for use, wherein the code file ready for use is for providing and currently
The fight service of fight function association needed for type of play;
Processing module, be used for if it is determined that going game mode be server online combat model, then run institute on the server
Code file ready for use is stated to execute fight logic.
15. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 6 described in file processing method or power
Benefit require any one of 7 to 12 described in file processing method.
16. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 6 described in file processing method or file described in any one of claim 7 to 12
Processing method.
17. a kind of terminal characterized by comprising one or more processors, memory, display device and one or more
A program, wherein one or more of programs are stored in the memory, and are configured as by one or more
A processor executes, processing of one or more of programs for file described in any one of perform claim requirement 1 to 6
Method.
18. a kind of server characterized by comprising one or more processors, memory and one or more programs,
Wherein, one or more of programs are stored in the memory, and are configured as by one or more of processing
Device executes, processing method of one or more of programs for file described in any one of perform claim requirement 7 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910612069.2A CN110327625B (en) | 2019-07-08 | 2019-07-08 | File processing method, device, processor, terminal and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910612069.2A CN110327625B (en) | 2019-07-08 | 2019-07-08 | File processing method, device, processor, terminal and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110327625A true CN110327625A (en) | 2019-10-15 |
CN110327625B CN110327625B (en) | 2023-07-21 |
Family
ID=68143528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910612069.2A Active CN110327625B (en) | 2019-07-08 | 2019-07-08 | File processing method, device, processor, terminal and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110327625B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142976A (en) * | 2019-12-25 | 2020-05-12 | 上海米哈游网络科技股份有限公司 | Logic code execution method, device, server and medium |
CN111581115A (en) * | 2020-06-04 | 2020-08-25 | 网易(杭州)网络有限公司 | File processing method and device, storage medium, processor and electronic device |
CN111581112A (en) * | 2020-06-04 | 2020-08-25 | 网易(杭州)网络有限公司 | File processing method and device, storage medium, processor and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040063498A1 (en) * | 2002-09-30 | 2004-04-01 | Sony Corporation | System and method for flexibly implementing a wireless gaming network |
US20060101023A1 (en) * | 2004-11-05 | 2006-05-11 | Ellie Mae, Inc. | Universal computing paradigm with single-code base utilizing a flexible distributed computing architecture |
CN102520972A (en) * | 2011-12-31 | 2012-06-27 | 上海方寸信息科技有限公司 | Video game development system and method thereof |
CN103442774A (en) * | 2010-09-13 | 2013-12-11 | 索尼电脑娱乐美国公司 | Dual mode program execution and loading |
CN104424018A (en) * | 2013-08-23 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Distributed calculating transaction processing method and device |
CN105214310A (en) * | 2015-10-13 | 2016-01-06 | 网易(杭州)网络有限公司 | A kind of game fight method of calibration, system and service end |
CN107959687A (en) * | 2017-12-13 | 2018-04-24 | 上海曼恒数字技术股份有限公司 | A kind of data processing method, system, equipment and storage medium |
-
2019
- 2019-07-08 CN CN201910612069.2A patent/CN110327625B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040063498A1 (en) * | 2002-09-30 | 2004-04-01 | Sony Corporation | System and method for flexibly implementing a wireless gaming network |
US20060101023A1 (en) * | 2004-11-05 | 2006-05-11 | Ellie Mae, Inc. | Universal computing paradigm with single-code base utilizing a flexible distributed computing architecture |
CN103442774A (en) * | 2010-09-13 | 2013-12-11 | 索尼电脑娱乐美国公司 | Dual mode program execution and loading |
CN102520972A (en) * | 2011-12-31 | 2012-06-27 | 上海方寸信息科技有限公司 | Video game development system and method thereof |
CN104424018A (en) * | 2013-08-23 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Distributed calculating transaction processing method and device |
CN105214310A (en) * | 2015-10-13 | 2016-01-06 | 网易(杭州)网络有限公司 | A kind of game fight method of calibration, system and service end |
CN107959687A (en) * | 2017-12-13 | 2018-04-24 | 上海曼恒数字技术股份有限公司 | A kind of data processing method, system, equipment and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142976A (en) * | 2019-12-25 | 2020-05-12 | 上海米哈游网络科技股份有限公司 | Logic code execution method, device, server and medium |
CN111142976B (en) * | 2019-12-25 | 2023-05-26 | 上海米哈游网络科技股份有限公司 | Logic code execution method, device, server and medium |
CN111581115A (en) * | 2020-06-04 | 2020-08-25 | 网易(杭州)网络有限公司 | File processing method and device, storage medium, processor and electronic device |
CN111581112A (en) * | 2020-06-04 | 2020-08-25 | 网易(杭州)网络有限公司 | File processing method and device, storage medium, processor and electronic device |
CN111581115B (en) * | 2020-06-04 | 2024-02-27 | 网易(杭州)网络有限公司 | File processing method and device, storage medium, processor and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN110327625B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110327625A (en) | Processing method, device, processor, terminal and the server of file | |
CN107115674B (en) | The distribution method and device of virtual resource | |
CN110392052A (en) | A kind of block chain intelligence contract processing system and method | |
CN106075912B (en) | A kind of method and network game system of online game mutual assistance | |
CN107340944B (en) | The display methods and device of interface | |
CN108310771A (en) | The execution method and apparatus of task, storage medium, electronic device | |
EP2752226A1 (en) | User organizing device, user organizing method, and cloud computing system | |
CN104965695B (en) | The method and apparatus of analog subscriber real-time operation | |
CN108579086A (en) | Processing method, device, storage medium and the electronic device of object | |
CN110075522A (en) | The control method of virtual weapons, device and terminal in shooting game | |
CN108379839A (en) | Response method, device and the terminal of control | |
CN109731330A (en) | The display methods and device of picture, storage medium, electronic device | |
CN107241387B (en) | The processing method of request of data, apparatus and system | |
CN107911374A (en) | Method of data synchronization and device, storage medium and electronic device | |
CN105288998B (en) | The exchange method and device of Intelligent hardware | |
CN104168282B (en) | cross-platform game communication method and system | |
CN105872098B (en) | Data processing method, load balancer and interactive application server and system | |
CN111265850B (en) | Control method and device of virtual operation object, storage medium and electronic device | |
CN108379834A (en) | A kind of method and relevant device of information processing | |
CN108829868A (en) | data display method and device, storage medium and electronic device | |
CN108289246A (en) | Data processing method, device, storage medium and electronic device | |
CN109847356A (en) | A kind of data processing method, device, terminal and the server of turn-based game | |
CN111228807B (en) | Control method and device of virtual operation object, storage medium and electronic device | |
CN106603707A (en) | Data processing method, terminal and server | |
CN108310768A (en) | The display methods and device of virtual scene, storage medium, electronic device |
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 |