CN109529339A - Game role costume changing method and device - Google Patents
Game role costume changing method and device Download PDFInfo
- Publication number
- CN109529339A CN109529339A CN201811390317.5A CN201811390317A CN109529339A CN 109529339 A CN109529339 A CN 109529339A CN 201811390317 A CN201811390317 A CN 201811390317A CN 109529339 A CN109529339 A CN 109529339A
- Authority
- CN
- China
- Prior art keywords
- equipment
- logic levels
- value
- logical
- logical message
- 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
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/55—Controlling game characters or game objects based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/65—Methods for processing data by generating or executing the game program for computing the condition of a game character
Abstract
The present embodiments relate to game processing technique fields, specifically, it is related to a kind of game role costume changing method and device, this method comprises: obtaining the first logical message of equipment to be dressed, it include logical location information in first logical message, first logic levels value and the first discre value, the second logical message is obtained in equipment cache database according to logical location information, judge in the second logical message with the presence or absence of the second discre value, if it exists, obtain the corresponding second logic levels value of the second discre value, judge the first logic levels value whether less than the second logic levels value, if being not less than, obtain equipment to be dressed the first figure and the second logical message corresponding to equipment second graph, by second graph, second discre value replaces with the first figure and the first discre value respectively, first logic levels value is stored to equipment and is cached Database, in this way, improving the scalability of the code of efficiency and game server that game server process game role changes the outfit.
Description
Technical field
The present embodiments relate to game processing technique field, in particular to a kind of game role costume changing method and
Device.
Background technique
Currently, game industry development is swift and violent, the gorgeous brilliant equipment and fashionable dress that game role is dressed are to attract player
One of an important factor for, in gaming, it is often necessary to change the outfit, but existing game role be changed to game role
The most low efficiency of the technology of dress, poor expandability.
Summary of the invention
In view of this, the present invention provides a kind of game role costume changing method and devices.
The embodiment of the invention provides a kind of game role costume changing methods, are applied to game server, the game services
Equipment cache database is prestored in device, which comprises
Obtain the first logical message of equipment to be dressed;Wherein, in first logical message include logical location information,
First logic levels value and the first discre value;
The second logical message is obtained in the equipment cache database according to the logical location information;
Judge in second logical message with the presence or absence of the second discre value, and if it exists, obtain second discre value pair
The the second logic levels value answered;
Judge whether the first logic levels value is less than the second logic levels value, if the first logic levels value
Not less than the second logic levels value, the first figure and second logical message institute for obtaining the equipment to be dressed are right
The second graph for the equipment answered, replaces with first figure for the second graph, and second discre value is replaced with institute
The first discre value is stated, the first logic levels value is stored to the equipment cache database.
Optionally, the method also includes:
If first logic levels are less than second logic levels, first logical message is stored to the dress
Standby cache database.
Optionally, the method also includes:
If second discre value is not present in second logical message, first discre value is loaded onto described the
In two logical messages, the first logic levels value is stored to the equipment cache database, is obtained described wait dress equipment
The first figure, first figure is shown.
Optionally, the step of the second logical message is obtained in the equipment cache database according to the logical location information
Suddenly, comprising:
Obtain the logical message stored in the equipment cache database;
Parsing obtains the logical location information for including in the logical message;
Whether judge the logical location information for including in the logical location information and first logical message of parsing acquisition
It is identical, if they are the same, the logical message as the second logical message and is obtained.
The embodiment of the invention also provides a kind of game role costume changing methods, are applied to game server, the game garment
It is engaged in device including equipment cache database, which comprises
Obtain third logical message equip to unloading, wherein in the third logical message including logical location information,
Third logic levels value and third discre value;
Search whether that there are the 4th logical messages in the equipment cache database according to the logical location information;If
There are the 4th logical message in the equipment cache database, parsing obtains include in the 4th logical message the 4th
Logic levels value and the 4th discre value;
Judge whether the 4th logic levels value is greater than the third logic levels value, if the 4th logic levels value
No more than the third logic levels value, obtains the third figure to unloading equipment and the 4th logical message institute is right
The third figure is replaced with the 4th figure by the 4th figure of the equipment answered, by the third logical message from described
It is deleted in equipment cache database.
Optionally, the method also includes:
If the 4th logic levels value is greater than the third logic levels value, by the third logical message from the dress
It is deleted in standby cache database.
Optionally, the method also includes:
If the 4th logical message is not present in the equipment cache database, institute is extracted from presetting in naked mould database
The figure corresponding to the naked mould equipment of unloading equipment is stated, the third figure is replaced with to the figure for extracting and obtaining, it will be described
Third logical message is deleted from the equipment cache database.
Optionally, include in the logical location information and the third logical message for including in the 4th logical message
Logical location information is identical.
The embodiment of the invention also provides a kind of game role apparatus for changing, are applied to game server, the game garment
It is engaged in device including equipment cache database, described device includes:
It dresses equipment information and obtains module, for obtaining the first logical message of equipment to be dressed;Wherein, it described first patrols
Collect includes logical location information, the first logic levels value and the first discre value in information;
First enquiry module is patrolled for obtaining second in the equipment cache database according to the logical location information
Collect information;
First judgment module, for judging in second logical message with the presence or absence of the second discre value, and if it exists, obtain
The corresponding second logic levels value of second discre value;
Second judgment module, for judging whether the first logic levels value is less than the second logic levels value, if
The first logic levels value is not less than the second logic levels value, obtains the first figure and the institute of the equipment to be dressed
The second graph is replaced with first figure by the second graph for stating equipment corresponding to the second logical message, will be described
Second discre value replaces with first discre value, and the first logic levels value is stored to the equipment cache database.
The embodiment of the invention also provides a kind of game role apparatus for changing, are applied to game server, the game garment
It is engaged in device including equipment cache database, described device includes:
Unloading equipment information obtains module, for obtaining the third logical message to unloading equipment, wherein the third is patrolled
Collect includes logical location information, third logic levels value and third discre value in information;
Second enquiry module, for searching whether to deposit in the equipment cache database according to the logical location information
In the 4th logical message;If parsing obtains the described 4th and patrols there are the 4th logical message in the equipment cache database
Collect the 4th logic levels value for including in information and the 4th discre value;
Third judgment module, for judging whether the 4th logic levels value is greater than the third logic levels value, if
The 4th logic levels value is not more than the third logic levels value, obtains the third figure to unloading equipment and institute
The third figure is replaced with the 4th figure by the 4th figure for stating equipment corresponding to the 4th logical message, will be described
Third logical message is deleted from the equipment cache database.
The embodiment of the invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, the processor realize above-mentioned game angle when executing the computer program
Color costume changing method.
The embodiment of the invention also provides a kind of computer readable storage medium, the readable storage medium storing program for executing includes computer
Program, the electronic equipment computer program controls the readable storage medium storing program for executing when running where execute above-mentioned game role and change
Dress method.
Beneficial effect
Game role costume changing method and device provided by the embodiment of the present invention, with logical location information and logic levels value
Based on realize the replacement of equipment, avoid and the judgement that changes the outfit carried out using the code of equipment, improve game server process and swim
The efficiency that play role changes the outfit judges whether to need to change the outfit using logic levels value, when carrying out equipment quantity adjustment, is not necessarily to
Extend the code of equipment, it is only necessary to be extended to logic levels value, improve the scalability of the code of game server.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the block diagram of a kind of electronic equipment 10 provided by the embodiment of the present invention.
Fig. 2 is a kind of flow chart of game role costume changing method provided by the embodiment of the present invention.
Fig. 3 is a kind of schematic diagram for equipping cache database provided by the embodiment of the present invention.
Fig. 4 is a kind of another schematic diagram for equipping cache database provided by the embodiment of the present invention.
Fig. 5 is a kind of another flow chart of game role costume changing method provided by the embodiment of the present invention.
Fig. 6 is a kind of module frame chart of game role apparatus for changing 20 provided by the embodiment of the present invention
Fig. 7 is a kind of another module frame chart of game role apparatus for changing 20 provided by the embodiment of the present invention.
Icon:
10- electronic equipment;11- memory;12- processor;13- network module;
20- game role apparatus for changing;21- dresses equipment information and obtains module;The first enquiry module of 22-;23- first sentences
Disconnected module;The second judgment module of 24-;25- unloading equipment information obtains module;The second enquiry module of 26-;27- third judges mould
Block.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only
It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings
The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Inventor further investigation reveals that, the existing most low efficiency of technology, the poor expandability to change the outfit to game role.
This is because the prior art is mostly compared the type of equipment one by one, when the position of two pieces equipment is identical and meets replacement
Rule is just replaced, and is otherwise remained unchanged.The prior art is judged using the type of equipment, and the type equipped is in code
In be specified value, when exterior arrangement file changes, type key assignments can also change, and will increase research and development cost in this way.This
Outside, the prior art more can be used smoothly in three kinds of equipment display levels below, however, when equipment display level number
It when measuring more, needs to extend a large amount of logical code, is not easy to the extension and maintenance of game server.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying
As a result, therefore, the solution that the discovery procedure of the above problem and the hereinafter embodiment of the present invention are proposed regarding to the issue above
Scheme all should be the contribution that inventor makes the present invention in process of the present invention.
Based on the studies above, the embodiment of the invention provides a kind of game role costume changing method and devices.
Fig. 1 shows the block diagram of a kind of electronic equipment 10 provided by the embodiment of the present invention.The embodiment of the present invention
In electronic equipment 10 can for data storage, transmission, processing function server-side, as shown in Figure 1, electronic equipment 10 wrap
It includes: memory 11, processor 12, network module 13 and game role apparatus for changing 20.
It is directly or indirectly electrically connected between memory 11, processor 12 and network module 13, to realize the biography of data
Defeated or interaction.It is electrically connected for example, these elements can be realized from each other by one or more communication bus or signal wire.
Game role apparatus for changing 20 is stored in memory 11, the game role apparatus for changing 20 includes at least one can be with software
Or the form of firmware (firmware) is stored in the software function module in the memory 11, the processor 12 passes through operation
The game role apparatus for changing 20 being stored in the software program and module, such as the embodiment of the present invention in memory 11, from
And perform various functions application and data processing, that is, realize the game role costume changing method in the embodiment of the present invention.
Wherein, the memory 11 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 11 is for storing program, and the processor 12 executes described program after receiving and executing instruction.
The processor 12 may be a kind of IC chip, the processing capacity with data.Above-mentioned processor 12
It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc..It may be implemented or execute each method, step disclosed in the embodiment of the present invention and patrol
Collect block diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..
Network module 13 is used to establish the communication connection between electronic equipment 10 and other communication terminal devices by network,
Realize the transmitting-receiving operation of network signal and data.Above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that structure shown in FIG. 1 is only to illustrate, electronic equipment 10 may also include it is more than shown in Fig. 1 or
Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its
Combination is realized.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the readable storage medium storing program for executing includes computer journey
Sequence.Electronic equipment 10 computer program controls the readable storage medium storing program for executing when running where executes following game role and changes
Dress method.
Fig. 2 shows a kind of flow charts of game role costume changing method provided by the embodiment of the present invention.The method has
Method and step defined in the process of pass is applied to electronic equipment 10, can be realized by the processor 12.It is appreciated that the trip
Costume changing method for characters of playing is applied to game server, and game server prestores equipment cache database.
Wherein, equipment cache database is used to store the logical message of equipment, and in the present embodiment, logical message includes patrolling
Collect location information, logic levels value and discre value.For example, the logical message of gloves is (D1-L1-I1), wherein D1For logical bit
Confidence breath, L1For logic levels value, I1For discre value.Wherein, logical message is pre-configured with by exterior arrangement file, in game garment
It is read when business device operation starting.
It is appreciated that in gaming mainly including that three categories are equipped: naked mould equipment, basic equipment and fashionable dress, wherein naked mould
Equipment can be understood as the most basic equipment of game role, and logic levels are worth minimum, the logic levels value highest of fashionable dress, base
The logic levels value of plinth equipment is placed in the middle.Due to the fast development of game, the logic levels classification of basic equipment and fashionable dress is also got over
Come more, be difficult to realize the efficient extension of code using existing technology, and logic letter is pre-configured with using exterior arrangement file
Breath, judgement when can greatly simplify extension, and be changed the outfit by logical message can effectively reduce game server
Operating pressure.
Game changes the outfit including wearing equipment and unloading equipment, and Fig. 2 is illustrated for dressing equipment.
Detailed process shown in Fig. 2 will be described in detail below:
Step S21 obtains the first logical message of equipment to be dressed.
In the present embodiment, equipment to be dressed can be gloves, and the first logical message is (D1-L1-I1)。
Step S22 obtains the second logical message in equipment cache database according to logical location information.
Game server obtains the logical message (D for equipping data cached middle storage1-L2-I2), then parse the logic
The logical location information D for including in the acquisition of information logical message1, judge the logical location information and the first logic that parsing obtains
Whether the logical location information for including in information is identical, and in the present embodiment, the two is D1, therefore, by logical message (D1-
L2-I2) be used as the second logical message and obtain, it in other words, can be data cached in equipment after obtaining the first logical message
" locking " the second logical message in library.
Step S23 judges in the second logical message with the presence or absence of the second discre value.
If the second discre value is not present in the second logical message, step S24 is turned to.
If there are the second discre values in the second logical message, step S25 is turned to.
First discre value is loaded onto the second logical message by step S24, the first logic levels value is stored slow to equipment
Deposit data library obtains the first figure of equipment to be dressed, the first figure is shown.
For example, if the second logical message is (D1, -), show that there is no any discre value, equipments in the second logical message
The corresponding logic levels value of the second logical message is not stored in cache database, game server can be by I at this time yet1Load
To (D1-, -), and by L1It stores to equipment cache database, then the second logical message is updated to (D1-L1-I1), game services
Device can also obtain mesh1, display mesh will be carried out1, the effect of display is that game role has dressed gloves.
Step S25 obtains the second logic levels value corresponding to the second discre value.
For example, the second logical message (D1-L2-I2) there are the second discre value I2, I can be obtained at this time2Corresponding second logic
Grade point L2。
Wherein, the second discre value I2With the second logic levels value L2For the logic judgment that changes the outfit later.It is appreciated that adopting
The judgement that changes the outfit is carried out with discre value and logic levels value, can greatly reduce the processing pressure of game server, improves game
Efficiency of the server when judging.
Whether step S26 judges the first logic levels value less than the second logic levels value.
If L1Not less than L2, turn to step S27.
If L1Less than L2, turn to step S28.
Step S27, obtain equipment to be dressed the first figure and the second logical message corresponding to equipment the second figure
Shape, replaces with the first figure for second graph, and the second discre value is replaced with the first discre value, and the first logic levels value is stored
To equipment cache database.
In the present embodiment, ring is equipped for corresponding to the second logical message.
If L1Not less than L2, show that the display priority of gloves is greater than the display priority of ring, game server can obtain
First figure mesh of gloves1And the second graph mesh of ring2, wherein mesh2It is shown in game role on hand, game
Server can be by mesh2Use mesh1It replaces, and by I2Use I1It replaces.In other words, the second logical message is from (D1-L2-I2)
Become (D1-L1-I1), it will be understood that discre value and logic levels value are there are corresponding relationship, therefore L1Also it can be stored in
It equips in cache database, it is as shown in Figure 3 to equip the information stored in cache database at this time.
It is appreciated that due to L2And I2It is not rejected from equipment cache database, therefore L2And I2Always with D1It establishes
There is corresponding relationship.
Step S28 stores the first logical message to equipment cache database.
If L1Less than L2, show that the display priority of gloves is less than the display priority of ring, continue to show mesh at this time2,
And by the first logical message (D1-L1-I1) store to equipment cache database, equip the information such as Fig. 4 stored in cache database
It is shown.
Through the above steps it can be found that when judging whether to need to change the outfit, it is only necessary to the size of decision logic grade point
, the code without the type to equipment does excessive processing, so, it is possible the timeliness for improving judgement, after being also convenient for
Extension.
Referring to Fig. 5, Fig. 5 is illustrated for dressing equipment.
Detailed process shown in fig. 5 will be described in detail below:
Step S31 obtains the third logical message equipped to unloading.
In the present embodiment, it is equipped for the helmet to unloading, third logical message is (D3-L3-I3)。
Step S32 searches whether that there are the 4th logical messages in equipment cache database according to logical location information.
It is appreciated that the helmet carry out unloading when, it should judge the helmet whether cover other equipment or by
Other equipment coverings, then carry out corresponding unloading operation again.
In the present embodiment, game server can be according to D3Search whether that there are the 4th logical messages, it will be understood that the 4th
Logical location information in logical message is also D3, search whether that there are the 4th logical messages with D3As criterion.
The 4th logical message is not present in data cached if equipping, turns to step S33.
If equip it is data cached it is middle exist the 4th logical message, steering step S34.
Step S33 equips corresponding figure from the naked mould for extracting in naked mould database and equipping to unloading is preset, by third
Figure replaces with the figure for extracting and obtaining, and third logical message is deleted from equipment cache database.
If being appreciated that in equipment cache database and the 4th logical message being not present, in other words, that is, equipment caching
It is D that logical location information is only existed in database3Third logical message, at this time can be directly slow from equipment by third logical message
Deposit data is deleted in library, while equipping corresponding figure mesh from the naked mould for extracting the helmet in naked mould database is preset0, the helmet
Figure is third figure mesh3, by mesh3Replace with mesh0.It is appreciated that logic levels value corresponding to naked mould equipment is most
It is low, therefore mesh0Mesh can necessarily be replaced3。
Step S34, parsing obtain the 4th logic levels value for including in the 4th logical message and the 4th discre value.
For example, the 4th logical message is (D3-L4-I4), wherein the 4th logic levels value is L4, the 4th discre value is I4。
Step S35, judges whether the 4th logic levels value is greater than third logic levels value.
If L4No more than L3, turn to step S36.
If L4Greater than L3, turn to step S37.
Step S36 obtains the 4th figure of equipment corresponding to the third figure equipped to unloading and the 4th logical message
Third figure is replaced with the 4th figure by shape, and third logical message is deleted from equipment cache database.
For example, being equipped for hair band corresponding to the 4th logical message, corresponding 4th figure of hair band is mesh4, by mesh3
Replace with mesh4, and by third logical message (D3-L3-I3) deleted from equipment cache database, it equips at this time data cached
The 4th logical message (D is stored in library3-L4-I4)。
Step S37 deletes third logical message from equipment cache database.
If L4Greater than L3, show that the display level of hair band is higher than the display level of the helmet, between the unloading helmet, Jiao Sesuo
Display is equipped for hair band, therefore will not influence the display of hair band whether the unloading helmet, only needs to patrol the third of the helmet at this time
Information is collected to delete from equipment cache database.
On the basis of the above, as shown in fig. 6, the embodiment of the invention provides a kind of modules of game role apparatus for changing 20
Block diagram, the game role apparatus for changing 20 include: that wearing equipment information obtains module 21, the first enquiry module 22, first sentences
Disconnected module 23 and the second judgment module 24.
It dresses equipment information and obtains module 21, for obtaining the first logical message of equipment to be dressed;Wherein, described first
It include logical location information, the first logic levels value and the first discre value in logical message.
Since wearing equipment information acquisition module 21 is similar with the realization principle of step S21 in Fig. 2, do not make herein more
More explanations.
First enquiry module 22, for obtaining second in the equipment cache database according to the logical location information
Logical message.
Since the first enquiry module 22 is similar with the realization principle of step S22 in Fig. 2, do not illustrate more herein.
First judgment module 23, for judging in second logical message with the presence or absence of the second discre value, and if it exists, obtain
Take the corresponding second logic levels value of second discre value.
Since first judgment module 23 and step S23, step S24 in Fig. 2 are similar with the realization principle of step S25,
Do not illustrate more herein.
Second judgment module 24, for judging whether the first logic levels value is less than the second logic levels value,
If the first logic levels value is not less than the second logic levels value, obtain the equipment to be dressed the first figure and
The second graph is replaced with first figure, by institute by the second graph of equipment corresponding to second logical message
It states the second discre value and replaces with first discre value, the first logic levels value is stored data cached to the equipment
Library.
Since the second judgment module 24 and step S26, step S27 in Fig. 2 are similar with the realization principle of step S28,
Do not illustrate more herein.
Fig. 7 shows a kind of another module frame chart of game role apparatus for changing 20 provided by the embodiment of the present invention, packet
It includes unloading equipment information and obtains module 25, the second enquiry module 26 and third judgment module 27.
Unloading equipment information obtains module 25, for obtaining the third logical message to unloading equipment, wherein the third
It include logical location information, third logic levels value and third discre value in logical message.
Since unloading equipment information acquisition module 25 is similar with the realization principle of step S31 in Fig. 5, do not make herein more
More explanations.
Second enquiry module 26, for being searched whether in the equipment cache database according to the logical location information
There are the 4th logical messages;If there are the 4th logical message in the equipment cache database, parsing obtains the described 4th
The 4th logic levels value for including in logical message and the 4th discre value.
Since the second enquiry module 26 and step S32, step S33 in Fig. 5 are similar with the realization principle of step S34,
Do not illustrate more herein.
Third judgment module 27, for judging whether the 4th logic levels value is greater than the third logic levels value,
If the 4th logic levels value is not more than the third logic levels value, obtain the third figure to unloading equipment and
The third figure is replaced with the 4th figure by the 4th figure of equipment corresponding to the 4th logical message, by institute
Third logical message is stated to delete from the equipment cache database.
Since third judgment module 27 and step S35, step S36 in Fig. 5 are similar with the realization principle of step S37,
Do not illustrate more herein.
It is appreciated that logical message be it is preconfigured by exterior arrangement file, when multiple logic levels occur mutual for equipment
When mutually replacing, the logic of code is constant, it is only necessary to by exterior arrangement file configuration logic levels, that is, can reach the effect that changes the outfit
Fruit so, it is possible the scalability for guaranteeing code.
To sum up, game role costume changing method and device provided by the embodiment of the present invention, improve game server process
The efficiency that game role changes the outfit, while also improving the scalability of the code of game server.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, electronic equipment 10 or the network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of game role costume changing method, which is characterized in that be applied to game server, prestored in the game server
Equip cache database, which comprises
Obtain the first logical message of equipment to be dressed;It wherein, include logical location information, first in first logical message
Logic levels value and the first discre value;
The second logical message is obtained in the equipment cache database according to the logical location information;
Judge in second logical message with the presence or absence of the second discre value, and if it exists, it is corresponding to obtain second discre value
Second logic levels value;
Judge whether the first logic levels value is less than the second logic levels value, if the first logic levels value is not small
In the second logic levels value, obtain corresponding to the first figure and second logical message of the equipment to be dressed
The second graph is replaced with first figure by the second graph of equipment, and second discre value is replaced with described
One discre value stores the first logic levels value to the equipment cache database.
2. game role costume changing method according to claim 1, which is characterized in that the method also includes:
If first logic levels are less than second logic levels, first logical message is stored slow to the equipment
Deposit data library.
3. game role costume changing method according to claim 1, which is characterized in that the method also includes:
If second discre value is not present in second logical message, first discre value is loaded onto described second and is patrolled
In volume information, the first logic levels value is stored to the equipment cache database, obtains the of the equipment to be dressed
One figure shows first figure.
4. game role costume changing method according to claim 1, which is characterized in that according to the logical location information in institute
State the step of obtaining the second logical message in equipment cache database, comprising:
Obtain the logical message stored in the equipment cache database;
Parsing obtains the logical location information for including in the logical message;
Judge whether the logical location information for including in the logical location information and first logical message of parsing acquisition is identical,
If they are the same, the logical message as the second logical message and is obtained.
5. a kind of game role costume changing method, which is characterized in that be applied to game server, include dress in the game server
Standby cache database, which comprises
Obtain the third logical message equipped to unloading, wherein include logical location information, third in the third logical message
Logic levels value and third discre value;
Search whether that there are the 4th logical messages in the equipment cache database according to the logical location information;If described
It equips there are the 4th logical message in cache database, parsing obtains the 4th logic for including in the 4th logical message
Grade point and the 4th discre value;
Judge whether the 4th logic levels value is greater than the third logic levels value, if the 4th logic levels value is little
In the third logic levels value, obtain corresponding to the third figure to unloading equipment and the 4th logical message
4th figure of equipment, replaces with the 4th figure for the third figure, by the third logical message from the equipment
It is deleted in cache database.
6. game role costume changing method according to claim 5, which is characterized in that the method also includes:
It is if the 4th logic levels value is greater than the third logic levels value, the third logical message is slow from the equipment
Deposit data is deleted in library.
7. game role costume changing method according to claim 5, which is characterized in that the method also includes:
If the 4th logical message is not present in the equipment cache database, from preset extracted in naked mould database it is described to
The third figure, is replaced with the figure for extracting and obtaining, by the third by the corresponding figure of the naked mould equipment of unloading equipment
Logical message is deleted from the equipment cache database.
8. game role costume changing method according to claim 5, which is characterized in that include in the 4th logical message
The logical location information for including in logical location information and the third logical message is identical.
9. a kind of game role apparatus for changing, which is characterized in that be applied to game server, include dress in the game server
Standby cache database, described device include:
It dresses equipment information and obtains module, for obtaining the first logical message of equipment to be dressed;Wherein, the first logic letter
It include logical location information, the first logic levels value and the first discre value in breath;
First enquiry module, for obtaining the second logic letter in the equipment cache database according to the logical location information
Breath;
First judgment module, for judging in second logical message with the presence or absence of the second discre value, and if it exists, described in acquisition
The corresponding second logic levels value of second discre value;
Second judgment module, for judging whether the first logic levels value is less than the second logic levels value, if described
First logic levels value is not less than the second logic levels value, obtains the first figure and described the of the equipment to be dressed
The second graph is replaced with first figure, by described second by the second graph of equipment corresponding to two logical messages
Discre value replaces with first discre value, and the first logic levels value is stored to the equipment cache database.
10. a kind of game role apparatus for changing, which is characterized in that be applied to game server, include in the game server
Cache database is equipped, described device includes:
Unloading equipment information obtains module, for obtaining the third logical message to unloading equipment, wherein the third logic letter
It include logical location information, third logic levels value and third discre value in breath;
Second enquiry module, for searching whether that there are in the equipment cache database according to the logical location information
Four logical messages;If parsing obtains the 4th logic letter there are the 4th logical message in the equipment cache database
The 4th logic levels value for including in breath and the 4th discre value;
Third judgment module, for judging whether the 4th logic levels value is greater than the third logic levels value, if described
4th logic levels value is not more than the third logic levels value, obtains the third figure to unloading equipment and described the
The third figure is replaced with the 4th figure, by the third by the 4th figure of equipment corresponding to four logical messages
Logical message is deleted from the equipment cache database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811390317.5A CN109529339A (en) | 2018-11-21 | 2018-11-21 | Game role costume changing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811390317.5A CN109529339A (en) | 2018-11-21 | 2018-11-21 | Game role costume changing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109529339A true CN109529339A (en) | 2019-03-29 |
Family
ID=65848831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811390317.5A Pending CN109529339A (en) | 2018-11-21 | 2018-11-21 | Game role costume changing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109529339A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111265875A (en) * | 2020-01-16 | 2020-06-12 | 北京赤金智娱科技有限公司 | Method and equipment for displaying game role equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799847A (en) * | 2010-01-22 | 2010-08-11 | 深圳市新飞扬数码技术有限公司 | Method and system for equipment changing of webpage game role |
CN104137139A (en) * | 2012-03-19 | 2014-11-05 | 新游游戏株式会社 | Online game method and system enabling user to change shape of item |
CN105261055A (en) * | 2015-09-07 | 2016-01-20 | 网易(杭州)网络有限公司 | Game role rehandling method, device and terminal |
CN106970800A (en) * | 2017-04-01 | 2017-07-21 | 腾讯科技(深圳)有限公司 | Costume changing method and device |
CN107019914A (en) * | 2016-02-02 | 2017-08-08 | 腾讯科技(深圳)有限公司 | The method and device that a kind of simulated object resemblance is changed |
-
2018
- 2018-11-21 CN CN201811390317.5A patent/CN109529339A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799847A (en) * | 2010-01-22 | 2010-08-11 | 深圳市新飞扬数码技术有限公司 | Method and system for equipment changing of webpage game role |
CN104137139A (en) * | 2012-03-19 | 2014-11-05 | 新游游戏株式会社 | Online game method and system enabling user to change shape of item |
CN105261055A (en) * | 2015-09-07 | 2016-01-20 | 网易(杭州)网络有限公司 | Game role rehandling method, device and terminal |
CN107019914A (en) * | 2016-02-02 | 2017-08-08 | 腾讯科技(深圳)有限公司 | The method and device that a kind of simulated object resemblance is changed |
CN106970800A (en) * | 2017-04-01 | 2017-07-21 | 腾讯科技(深圳)有限公司 | Costume changing method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111265875A (en) * | 2020-01-16 | 2020-06-12 | 北京赤金智娱科技有限公司 | Method and equipment for displaying game role equipment |
CN111265875B (en) * | 2020-01-16 | 2023-10-13 | 北京完美赤金科技有限公司 | Method and equipment for displaying game role equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106911697B (en) | Access rights setting method, device, server and storage medium | |
CN108829764A (en) | Recommendation information acquisition methods, device, system, server and storage medium | |
CN109741134A (en) | Information-pushing method, device, electronic equipment and computer readable storage medium | |
CN103744887B (en) | It is a kind of for the method for people search, device and computer equipment | |
CN106897899A (en) | A kind of method and system by personalized recommendation commodity after customer grouping | |
CN108509497A (en) | Information recommendation method, device and electronic equipment | |
CN106354797B (en) | Data recommendation method and device | |
CN110162292A (en) | Voice broadcast method and device | |
CN108898445A (en) | The analysis method and device of customer consumption ability | |
CN104462285A (en) | Privacy protection method for mobile service inquiry system | |
CN108984553A (en) | Caching method and device | |
CN109508879A (en) | A kind of recognition methods of risk, device and equipment | |
WO2017092601A1 (en) | Data processing method and device | |
CN110175152A (en) | A kind of log inquiring method, transfer server cluster and log query system | |
CN107424046A (en) | A kind of multi-platform marketing system of cross-border electric business based on cloud computing | |
CN109529339A (en) | Game role costume changing method and device | |
CN110059981A (en) | Trust Values Asses method, apparatus and terminal device | |
CN109710542A (en) | A kind of completely N-ary tree construction method and device | |
CN109272526A (en) | Image processing method, system and electronic equipment | |
CN108280102A (en) | Internet behavior recording method, device and user terminal | |
CN109529347A (en) | 3D game bone additions and deletions method and device | |
CN109684418A (en) | Date storage method and device based on power grid chart database | |
KR20120132137A (en) | Method and system of providing goods information using multiple category classification | |
CN108765503A (en) | A kind of skin color detection method, device and terminal | |
CN109529342A (en) | A kind of data rendering method and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |