CN111367502A - Numerical value processing method and device - Google Patents

Numerical value processing method and device Download PDF

Info

Publication number
CN111367502A
CN111367502A CN202010143014.4A CN202010143014A CN111367502A CN 111367502 A CN111367502 A CN 111367502A CN 202010143014 A CN202010143014 A CN 202010143014A CN 111367502 A CN111367502 A CN 111367502A
Authority
CN
China
Prior art keywords
processing
parameter
numerical
target
category
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.)
Pending
Application number
CN202010143014.4A
Other languages
Chinese (zh)
Inventor
谢亚晋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Information Technology Co Ltd
Original Assignee
Shenzhen Tencent Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Information Technology Co Ltd filed Critical Shenzhen Tencent Information Technology Co Ltd
Priority to CN202010143014.4A priority Critical patent/CN111367502A/en
Publication of CN111367502A publication Critical patent/CN111367502A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating 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

Abstract

The embodiment of the application discloses a numerical processing method and a related device, wherein the method comprises the following steps: receiving a processing request, wherein the processing request comprises a target processing type; determining a parameter identifier corresponding to the target processing type through the matching relation; acquiring category processing parameters corresponding to the parameter identifications from a parameter library according to the parameter identifications; constructing a numerical processing function aiming at the target processing type according to the category processing parameters and the initial numerical processing function; and determining a target value corresponding to the processing request according to the value processing function. According to the technical scheme, the processing equipment can construct the numerical processing function aiming at the target processing type according to the matching relation. Therefore, the game developer only needs to establish a matching relation in the development process, and does not need to construct a numerical processing function, so that the workload of the game developer is reduced to a certain extent, and the development efficiency is improved.

Description

Numerical value processing method and device
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for processing a value.
Background
With the continuous richness of game contents, the ways of obtaining the relevant numerical values by game objects are more and more, and how to determine the relevant numerical values obtained by the game objects in various ways is an important problem in ensuring the reasonability and balance of the game.
In some related technologies, a game developer may set a corresponding numerical processing function according to game content related to a numerical value, but since ways of processing related numerical values in different game contents are different, the game developer needs to set a large number of numerical processing functions, and whenever a new content related to a numerical value occurs in a game, a new numerical processing function needs to be set, which results in a large development workload and a low development efficiency.
Disclosure of Invention
In order to solve the technical problem, the application provides a numerical processing method, based on the numerical processing method, a developer only needs to set a matching relationship between a processing type and a category processing parameter, when a numerical value of the processing type needs to be processed, a processing device can find out a corresponding category processing parameter according to the matching relationship, and a numerical processing function corresponding to the processing type can be obtained by processing the category processing parameter and an initial numerical processing function, so that the development difficulty is reduced to a certain extent, the development workload is reduced, and the development efficiency is improved.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for processing a value, where the method includes:
receiving a processing request, wherein the processing request comprises a target processing type;
determining a parameter identifier corresponding to the target processing type through a matching relation;
acquiring a category processing parameter corresponding to the parameter identification from a parameter library according to the parameter identification;
constructing a numerical processing function aiming at the target processing type according to the category processing parameters and the initial numerical processing function;
and determining a target value corresponding to the processing request according to the value processing function.
In a second aspect, an embodiment of the present application provides a numerical value processing apparatus, where the apparatus includes a receiving unit, a first determining unit, an obtaining unit, a constructing unit, and a second determining unit:
the receiving unit is used for receiving a processing request, and the processing request comprises a target processing type;
the first determining unit is configured to determine, through a matching relationship, a parameter identifier corresponding to the target processing type;
the acquisition unit is used for acquiring the category processing parameters corresponding to the parameter identifications from a parameter library according to the parameter identifications;
the construction unit is used for constructing a numerical processing function aiming at the target processing type according to the category processing parameter and the initial numerical processing function;
and the second determining unit is used for determining a target numerical value corresponding to the processing request according to the numerical processing function.
In a third aspect, an embodiment of the present application provides an apparatus for numerical processing, where the apparatus includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the numerical processing method of the first aspect according to instructions in the program code.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program for executing the numerical processing method according to the first aspect.
According to the technical scheme, after receiving the processing request, the processing device can acquire the target processing type from the processing request, determine the parameter identifier corresponding to the target processing type through the matching relationship, acquire the category processing parameter corresponding to the parameter identifier from the parameter library, and then construct the numerical processing function for the target processing type through the initial numerical processing function and the category processing parameter. Therefore, when a new processing type needs to be added into the game, the game developer only needs to establish a new matching relationship in the development process, so that the processing equipment can construct a new numerical processing function corresponding to the processing type according to the matching relationship, and the game developer does not need to construct a new numerical processing function, thereby reducing the workload of the game developer to a certain extent and improving the development efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a numerical processing method in an actual application scenario according to an embodiment of the present application;
fig. 2 is a flowchart of a numerical processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a numerical processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a numerical processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a numerical processing method in an actual application scenario according to an embodiment of the present application;
fig. 6 is a schematic diagram of a numerical processing method in an actual application scenario according to an embodiment of the present application;
fig. 7 is a block diagram of a numerical processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an apparatus for numerical processing according to an embodiment of the present disclosure;
fig. 9 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
The game object value is a key part which needs to pay attention to keep the reasonability and the balance of the game, and the premise of ensuring the accuracy of game value processing is to maintain the normal operation of the game. In the related art, a developer needs to consider the influence of various types of game contents on game value processing when developing a game, and therefore, it is necessary to add a parameter corresponding to each game content in a function for determining a game value. Because the game content is richer and more factors which can influence the game value processing are more and more, the functions are more and more complicated due to more and more parameters added in the functions by developers, and thus, the game is difficult to determine which parameter value in the functions is used for processing when running. In addition, each time new game content appears, developers need to modify the function, and due to the fact that the complexity of the function is high, the modification consumes a large amount of work, and the development efficiency is low.
In order to solve the technical problem, the application provides a numerical processing method, based on the numerical processing method, a developer only needs to set a matching relationship between a processing type and a category processing parameter, when a numerical value of the processing type needs to be processed, a processing device can find out a corresponding category processing parameter according to the matching relationship, and combine the category processing parameter with an initial numerical processing function, so that a numerical processing function corresponding to the processing type can be obtained, the development difficulty is reduced to a certain extent, the development workload is reduced, and the development efficiency is improved.
It is understood that the method may be applied to a processing device which is capable of performing numerical processing, for example, a terminal device or a server having a numerical processing function. The method can be independently executed through the terminal equipment or the server, can also be applied to a network scene of communication between the terminal equipment and the server, and is executed through the cooperation of the terminal equipment and the server. The terminal device may be a computer, a Personal Digital Assistant (PDA), a tablet computer, or the like. The server may be understood as an application server or a Web server, and in actual deployment, the server may be an independent server or a cluster server. Meanwhile, in a hardware environment, the technology has been implemented in the following environments: an ARM architecture processor, an X86 architecture processor; in a software environment, the technology has been implemented in the following environments: android platform, Windows xp and operating systems or Linux operating systems.
In order to facilitate understanding of the technical solution of the present application, a numerical processing method provided in the embodiments of the present application will be described below with reference to an actual application scenario.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a numerical processing method according to an embodiment of the present application, where a processing device is a server 101. When a game user performs an operation that can affect a value of a game object in a game, a terminal device bearing the game transmits a processing request to the server 101 in order to determine that the game value can be acquired by the operation. In order to enable the server 101 to know the processing type of the numerical processing, the processing request sent by the terminal device may include a target processing type corresponding to the numerical processing.
It can be understood that, in the game development process, in order to simplify the flow of constructing a numerical processing function for processing each processing type value, a developer may set an initial numerical processing function that is common among the processing types and category processing parameters that are required for processing each type, and by combining the category processing parameters that are required for each processing type with the initial numerical processing function, the numerical processing function corresponding to each processing type may be obtained. Therefore, in the game running process, when the server 101 needs to obtain a numerical processing function corresponding to a certain processing type, the required numerical processing function can be constructed on the basis of the initial numerical processing function only by obtaining the category processing parameter corresponding to the processing type.
Based on this, in order to enable the numerical processing of the game to normally operate, the developer only needs to enable the server 101 to acquire the category processing parameters corresponding to each processing type. For this purpose, in the server 101, a developer may establish a parameter library including each category processing parameter and set a parameter identifier corresponding to each category processing parameter, and by using the parameter identifier, the server 101 can obtain the corresponding category processing parameter from the parameter library. Meanwhile, the developer stores, in the server 101, a matching relationship between each processing type and the parameter identifier of the required category processing parameter, and by the matching relationship, the server 101 can obtain the parameter identifier corresponding to each processing type.
Therefore, after the server 101 acquires the target processing type, the parameter identifier corresponding to the target processing type may be determined according to the matching relationship. In this actual application scenario, the target processing type is processing type 4 in the matching relationship, and therefore the parameter identifiers determined by the server 101 according to the matching relationship are parameter identifier 1 and parameter identifier 3. According to the parameter identifier, the server 101 can obtain the class processing parameter 1 and the class processing parameter 3 corresponding to the parameter identifier 1 and the parameter identifier 3 from the parameter library, and construct a numerical processing function for the target processing type based on the initial numerical processing function according to the class processing parameter. Through the numerical processing function, the server 101 can process the received processing request, thereby determining a target numerical value corresponding to the processing request.
Therefore, developers only need to set the matching relationship between each processing type and the parameter identifier in the development process, so that when the server 101 receives a processing request related to the processing type during game operation, a numerical processing function corresponding to the processing type can be constructed through the matching relationship, and the developers do not need to set the numerical processing functions corresponding to the processing types one by one in the development process, thereby reducing the workload of the developers to a certain extent and improving the development efficiency. Meanwhile, when a numerical processing function of some processing types needs to be modified or a new processing type needs to be introduced, developers can directly modify or add the matching relationship, so that the development process is simplified, the development process is clearer and has logicality.
Next, a numerical processing method provided in an embodiment of the present application will be described with reference to the drawings.
Referring to fig. 2, fig. 2 shows a flow chart of a numerical processing method, the method comprising:
s201: a processing request is received.
During a game, game objects within the game tend to trigger multiple types of numerical processing operations, and when these numerical processing operations are triggered, the processing device may receive a processing request corresponding to the numerical processing operation. The game object may be a certain game character or a game item in the game, and in order to enable the processing device to know the type of the triggered numerical value processing operation so as to process the numerical value of the type, the processing request may include a target processing type, where the target processing type is a processing type triggered by the game object in all processing types owned by the game.
S202: and determining the parameter identification corresponding to the target processing type through the matching relation.
It will be appreciated that the factors that a game object can affect a game value when obtaining the game value from different types of game content may be partially or completely different. For example, as shown in FIG. 3, FIG. 3 is a schematic diagram of game value processing in a gaming system. In the schematic diagram, the value module is used for processing values corresponding to various types of game contents triggered by a game object, the processing types of the game include an activity module, a reward module, a task module and the like, the activity module is responsible for running contents related to game activities in the game, the reward module is responsible for running contents related to rewards in the game, and the task module is responsible for running contents related to game tasks in the game and the like.
When the numerical module processes the numerical value corresponding to each processing type, the numerical module needs to determine the numerical value according to the numerical processing function corresponding to each processing type. It is understood that the numerical processing function is divided into a general part and a non-general part, the general part is a part of the numerical processing function corresponding to each processing type, and the non-general part and the category processing parameters corresponding to each processing type enable the numerical module to determine the target numerical value of the content module corresponding to the type. For example, when it is necessary to determine a target value corresponding to the activity module of the game object, the object level of the target game object and the object level of the whole game object that trigger the value processing at this time need to be obtained, so that the target value that can be obtained by the target game object at this time can be determined according to the whole game object level.
By combining the general-purpose part and the non-general-purpose part, a numerical processing function corresponding to each processing type can be obtained. In the development process, if a corresponding numerical processing function is preset for each processing type, the development workload is extremely high, and the development efficiency is low; if all the category processing parameters are put into the same numerical processing function to form a general numerical processing function, the category processing parameters irrelevant to the processing are invalidated when the processing equipment performs numerical processing each time, so that the program required by the processing equipment is too complex to realize.
Based on this, in order to enable the processing device to process the game numerical values corresponding to the game contents of each type, reduce the workload of the developer during game development and improve the working efficiency, the developer can separate the general part from the non-general part for processing. In the embodiment of the application, a developer sets an initial numerical processing function according to the general part, and combines the category processing parameters on the basis of the initial numerical processing function, so that a numerical processing function for each processing type can be constructed.
Since it is necessary to enable the processing device to obtain the category processing parameters required for performing the numerical processing according to the processing request after receiving the processing request, in a possible implementation manner, the processing device may establish a parameter library including a plurality of category processing parameters, as shown in fig. 1. In order to enable the processing device to obtain the required category processing parameters from the parameter library, a corresponding parameter identifier may be set for each category processing parameter, and the processing device may obtain the corresponding category processing parameters from the parameter library according to the parameter identifier.
Meanwhile, in order to enable the processing device to obtain the category processing parameters corresponding to the processing types, in a possible implementation manner, before the game runs, when each processing type is respectively used as a target processing type, for the target processing type, the category processing parameters may be determined in the parameter library, and a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameter is established, where the matching relationship is as shown in fig. 1. In the running process of the game, after the processing equipment acquires the target processing type, the parameter identification corresponding to the target processing type can be determined through the matching relation.
S203: and acquiring the category processing parameters corresponding to the parameter identifications from the parameter library according to the parameter identifications.
After determining the parameter identifier, the processing device may obtain, according to the parameter identifier, a category processing parameter corresponding to the parameter identifier from the parameter library, where the category processing parameter is a category processing parameter required by the processing device when processing the value of the target processing type.
It is to be understood that when a target processing type corresponds to a plurality of parameter identifications, there are also a plurality of category processing parameters required for constructing the target processing type. At this time, when a plurality of category processing parameters are combined with the initial numerical processing function in different orders, the numerical processing function constructed may be different. For example, when a plurality of class processing parameters respectively correspond to one numerical processing mode, the numerical processing modes are combined in different orders, and the resulting numerical processing modes may be completely different, for example, when the class processing parameter a is (x +50), the class processing parameter b is 70% x, and x is an initial value substituted into the parameter, when a numerical processing function is constructed in the order of a-b, the resulting numerical processing function may include (x +50) 70%; when the numerical processing functions are constructed in the order of b-a, the numerical processing functions obtained may include (70% x +50), and thus the final processing results may be completely different.
Therefore, in order to ensure the accuracy of the numerical processing, in a possible implementation manner, when the matching relationship is established, in addition to the parameter identifiers corresponding to the respective processing types, the processing device may sequentially store the parameters corresponding to the parameter identifiers in the matching relationship of the target processing type. After the processing device obtains the target processing type, the processing device may further determine a parameter sequence corresponding to the target processing type through the matching relationship.
S204: and constructing a numerical processing function aiming at the target processing type according to the category processing parameters and the initial numerical processing function.
After the class processing parameters corresponding to the target processing type are obtained, the initial numerical processing function in the processing device is added, the processing device already has the general part and the non-general part, and the general part and the non-general part are obtained by splitting the numerical processing function, so that the processing device can construct the numerical processing function for the target processing type according to the class processing parameters and the initial numerical processing function. Therefore, according to the technical scheme provided by the embodiment of the application, in the game development process, the processing equipment can construct the numerical processing function aiming at each processing type in the game running process only by setting the matching relation between the processing type and the parameter identification in the processing equipment, so that the development workload is reduced to a certain extent, the development efficiency is improved, the function structure is simplified, and the function logic is clearer.
It is to be understood that the category processing parameter may be a logic processing manner independent from each other, and in a possible implementation manner, by adding the category processing parameter to the initial numerical processing function, the processing request may be subjected to logic processing of each category processing parameter, and the processing result subjected to each category processing parameter is sorted by the initial numerical processing function, where the above flow is a function of the constructed numerical processing function.
S205: and determining a target value corresponding to the processing request according to the value processing function.
Wherein the target value is a game value determined by the processing device by receiving the processing request. It will be appreciated that in some cases, the type of processing triggered by a game object has a corresponding processing initial value, which is a default value and is not specific to a particular game object but is common to some or all game objects. For example, when the process type is a numerical process for a task, the task may have an initial task reward value. In order to balance the experience that the game object can acquire and to close the numerical gap between the game users, the processing device may acquire the target game object level and the target server on-time in the parameter library as the corresponding category processing parameters to construct the numerical processing function, where the target game object is the game object that triggers the processing request, and the target game server is the server where the target game object is located.
When the target value is determined according to the value processing function, the target value obtained by the game object with higher grade and longer server starting time is less, and the total number of the obtained values is more because the game object of the class has longer probability game time; the game objects with lower levels and shorter server starting time can obtain more target numerical values, the game objects with high probability have shorter time, and the total number of the obtained numerical values is less.
In addition, the target processing numerical values determined by the same type of processing request may be different for different game objects, for example, when determining the target numerical value corresponding to the task, the game object with a higher rank obtains a smaller target numerical value, and the game object with a lower rank obtains a larger target numerical value. Therefore, in order to improve the accuracy of the value processing, in a possible implementation manner, the processing request further includes a target game object to process an initial value, and the processing device may determine a target value that can be obtained by the target game object under the target processing type according to the value processing function and the processing initial value.
According to the technical scheme, after receiving the processing request, the processing device can acquire the target processing type from the processing request, determine the parameter identifier corresponding to the target processing type through the matching relationship, acquire the category processing parameter corresponding to the parameter identifier from the parameter library, and then construct the numerical processing function for the target processing type through the initial numerical processing function and the category processing parameter. Therefore, when a new processing type needs to be added into the game, the game developer only needs to establish a new matching relationship in the development process, so that the processing equipment can construct a new numerical processing function corresponding to the processing type according to the matching relationship, and the game developer does not need to construct a new numerical processing function, thereby reducing the workload of the game developer to a certain extent and improving the development efficiency.
It can be understood that, each time a processing request is received, the processing device constructs a numerical processing function on the basis of the initial numerical processing function, so that, in order to improve the operation stability of the processing device and prevent the processing device from being unable to obtain the initial numerical processing function, in one possible implementation, after determining a target numerical value, the processing device may convert the numerical processing function into the initial numerical processing function for the next numerical processing.
For example, in one possible implementation, the processing device may perform numerical processing by a resource acquisition Initialization (RAII). As shown in fig. 4, fig. 4 is a schematic diagram of numerical processing using the RAII method. By the method, when the numerical value processing is carried out, after the processing request is received, the relevant information including the target processing type, the category processing parameter, the target game object and the like can be obtained and generated in the unit stack according to the method. After the processing device constructs the numerical processing parameter by using the relevant information and determines the target numerical value corresponding to the processing request, the processing device may exit the unit stack by using the initialization characteristic of the RAII, and remove the information related to the processing of the time value in the numerical processing function, that is, convert the information into the initial numerical processing function again, and wait for the next processing request. The stack refers to a register in a computer, and the register is used for storing binary codes.
Next, a numerical processing method provided in the embodiment of the present application will be described in conjunction with an actual application scenario. In the practical application scenario, the processing device is a server, the target processing type is a bonus processing type, the processing initial value is an initial experience value of the bonus, the target value is a target experience value determined according to the initial experience value and related information, the target game object is a game character triggering the processing request, and the parameter library and the matching relationship are shown in fig. 5.
The embodiment of the application also provides a flow diagram for the actual application scenario, as shown in fig. 6. After obtaining the processing request, the server may determine that the value processing is the bonus processing type, so that in the matching relationship shown in fig. 5, the determined parameters are identified as 1 and 2, and the sequence is 1 first and 2 second. According to the parameter identifier, the class processing parameters determined by the server are as follows:
1. the daily experience limit, that is, the limit of the experience value acquired by the game character every day on the numerical processing, is that the target experience value determined by the numerical processing is less when the experience value acquired by the game character every day is more.
2. In order to balance the values between the game characters, the target experience value determined by the numerical processing is less when the game character reserves more experience values.
And the server constructs a numerical processing function according to the category processing parameter 1, the category processing parameter 2 and the parameter sequence of 1 to 2, and inputs the initial experience value included in the processing request into the numerical processing function for determination. Since the parameter sequence is 1 and then 2, the server first determines the influence of the daily experience limit on the initial experience value, then adds the obtained experience value to the game character by determining the reserve experience limit and using the value determined by the two-part parameters as the target experience value. After the determination is completed, the server may initialize the numerical processing function for the next numerical processing.
Based on the numerical processing method provided in the foregoing embodiment, an embodiment of the present application further provides a numerical processing apparatus 700, and referring to fig. 7, the apparatus 700 includes a receiving unit 701, a first determining unit 702, an obtaining unit 703, a constructing unit 704, and a second determining unit 705:
a receiving unit 701, configured to receive a processing request, where the processing request includes a target processing type;
the first determining unit 702 is configured to determine, through a matching relationship, a parameter identifier corresponding to a target processing type;
an obtaining unit 703, configured to obtain, according to the parameter identifier, a category processing parameter corresponding to the parameter identifier from a parameter library;
a constructing unit 704, configured to construct a numerical processing function for the target processing type according to the category processing parameter and the initial numerical processing function;
the second determining unit 705 is configured to determine a target value corresponding to the processing request according to the value processing function.
In one possible implementation, the apparatus 700 further includes a first establishing unit 706, a third determining unit 707, and a second establishing unit 708:
a first establishing unit 706 for establishing a parameter library containing a plurality of kinds of processing parameters;
a third determination unit 707 for determining a category processing parameter in the parameter library for the target processing type;
the second establishing unit 708 is configured to establish a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameter.
In a possible implementation manner, the apparatus 700 further includes a fourth determining unit 709:
a fourth determining unit 709, configured to determine, through a matching relationship, a parameter order corresponding to the target processing type;
the construction unit 704 is specifically configured to:
constructing a numerical processing function aiming at the target processing type according to the category processing parameters, the parameter sequence and the initial numerical processing function
In a possible implementation manner, the processing request further includes a target game object and a processing initial value, and the second determining unit 705 is specifically configured to:
and determining a target value which can be acquired by the target game object under the target processing type according to the value processing function and the processing initial value.
In one possible implementation, the apparatus 700 further includes a conversion unit 710:
a converting unit 710, configured to convert the numerical processing function into an initial numerical processing function.
The embodiment of the application also provides a device for numerical processing, which is described below with reference to the attached drawings. Referring to fig. 8, an embodiment of the present application provides a device 800, where the device 800 may also be a terminal device, and the terminal device may be any intelligent terminal including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a Point of Sales (POS), a vehicle-mounted computer, and the like, where the terminal device is a mobile phone:
fig. 8 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Referring to fig. 8, the handset includes: a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and a power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 8:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to the processor 880; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841, and the display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another cellular phone via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The handset also includes a power supply 890 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 880 via a power management system to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment, the processor 880 included in the terminal device further has the following functions:
receiving a processing request, wherein the processing request comprises a target processing type;
determining a parameter identifier corresponding to the target processing type through a matching relation;
acquiring a category processing parameter corresponding to the parameter identification from a parameter library according to the parameter identification;
constructing a numerical processing function aiming at the target processing type according to the category processing parameters and the initial numerical processing function;
and determining a target value corresponding to the processing request according to the value processing function.
Referring to fig. 9, fig. 9 is a block diagram of a server 900 provided in this embodiment, and the server 900 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) storing an application 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 922 may be provided in communication with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.
The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, and/or one or more operating systems 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 9.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, where the computer program is used to execute any one implementation manner of the numerical processing method described in the foregoing embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of numerical processing, the method comprising:
receiving a processing request, wherein the processing request comprises a target processing type;
determining a parameter identifier corresponding to the target processing type through a matching relation;
acquiring a category processing parameter corresponding to the parameter identification from a parameter library according to the parameter identification;
constructing a numerical processing function aiming at the target processing type according to the category processing parameters and the initial numerical processing function;
and determining a target value corresponding to the processing request according to the value processing function.
2. The method of claim 1, wherein prior to said receiving a processing request, the method further comprises:
establishing a parameter library containing various category processing parameters;
determining the category processing parameters in the parameter library aiming at the target processing type;
and establishing a matching relation between the target processing type and the parameter identification corresponding to the category processing parameter.
3. The method of claim 1, further comprising: determining a parameter sequence corresponding to the target processing type through a matching relation;
the step of constructing a numerical processing function for the target processing type according to the category processing parameter and the initial numerical processing function specifically comprises;
and constructing a numerical processing function aiming at the target processing type according to the category processing parameters, the parameter sequence and the initial numerical processing function.
4. The method according to claim 3, wherein the processing request further includes a target game object and a processing initial value, and the determining the target value corresponding to the processing request according to the value processing function specifically includes:
and determining a target value which can be acquired by the target game object under the target processing type according to the value processing function and the processing initial value.
5. The method of claim 1, further comprising:
and converting the numerical processing function into the initial numerical processing function.
6. A numerical value processing apparatus characterized by comprising a receiving unit, a first determining unit, an acquiring unit, a constructing unit, and a second determining unit:
the receiving unit is used for receiving a processing request, and the processing request comprises a target processing type;
the first determining unit is configured to determine, through a matching relationship, a parameter identifier corresponding to the target processing type;
the acquisition unit is used for acquiring the category processing parameters corresponding to the parameter identifications from a parameter library according to the parameter identifications;
the construction unit is used for constructing a numerical processing function aiming at the target processing type according to the category processing parameter and the initial numerical processing function;
and the second determining unit is used for determining a target numerical value corresponding to the processing request according to the numerical processing function.
7. The apparatus of claim 6, further comprising a first establishing unit, a third determining unit, and a second establishing unit:
the first establishing unit is used for establishing a parameter library containing multiple types of processing parameters;
the third determining unit is configured to determine the category processing parameter in the parameter library for the target processing type;
the second establishing unit is configured to establish a matching relationship between the target processing type and the parameter identifier corresponding to the category processing parameter.
8. The apparatus according to claim 6, characterized in that the apparatus further comprises a fourth determination unit:
the fourth determining unit is configured to determine, through a matching relationship, a parameter order corresponding to the target processing type;
the construction unit is specifically configured to:
and constructing a numerical processing function aiming at the target processing type according to the category processing parameters, the parameter sequence and the initial numerical processing function.
9. An apparatus for numerical processing, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the numerical processing method of any one of claims 1 to 5 according to an instruction in the program code.
10. A computer-readable storage medium for storing a computer program for executing the numerical value processing method according to any one of claims 1 to 5.
CN202010143014.4A 2020-03-04 2020-03-04 Numerical value processing method and device Pending CN111367502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010143014.4A CN111367502A (en) 2020-03-04 2020-03-04 Numerical value processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010143014.4A CN111367502A (en) 2020-03-04 2020-03-04 Numerical value processing method and device

Publications (1)

Publication Number Publication Date
CN111367502A true CN111367502A (en) 2020-07-03

Family

ID=71210160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010143014.4A Pending CN111367502A (en) 2020-03-04 2020-03-04 Numerical value processing method and device

Country Status (1)

Country Link
CN (1) CN111367502A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112354189A (en) * 2020-11-23 2021-02-12 腾讯科技(深圳)有限公司 Game data object matching method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112354189A (en) * 2020-11-23 2021-02-12 腾讯科技(深圳)有限公司 Game data object matching method, device, equipment and storage medium
CN112354189B (en) * 2020-11-23 2022-05-20 腾讯科技(深圳)有限公司 Game data object matching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107423794B (en) Code scanning method and device for graphic coding and mobile terminal
CN110569078B (en) Method and device for preloading webpage-level program
CN110620822A (en) Network element determination method and device
CN107357651B (en) Application acceleration method and device and terminal
CN111371916B (en) Data processing method and related equipment
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
CN111367502A (en) Numerical value processing method and device
CN114124924A (en) Method, equipment and system for determining configuration information
CN105528220B (en) Method and device for loading dynamic shared object
CN116468382A (en) RPA robot flow management method, device, equipment and storage medium
CN115794654A (en) Test case distribution processing method, system, equipment and storage medium
CN112099713B (en) Virtual element display method and related device
CN109002535B (en) Data updating method and device
CN112214699B (en) Page processing method and related device
CN110109788B (en) Multi-key detection method and device, electronic equipment and storage medium
CN109902484B (en) Processing method of associated application and terminal
CN112035180A (en) Automatic instance loading method and device, electronic equipment and storage medium
CN106657278B (en) Data transmission method and device and computer equipment
CN108073508B (en) Compatibility detection method and device
CN111382335B (en) Data pulling method and device and storage medium
CN109242479A (en) A kind of method and apparatus that red packet is got based on integrating system
CN111405649B (en) Information transmission method and device and mobile terminal
CN112799857B (en) Application access method, device, terminal and storage medium
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium
CN112395185B (en) Program testing method and related 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