CN109589603A - Game operation control method, device, medium and computer equipment - Google Patents
Game operation control method, device, medium and computer equipment Download PDFInfo
- Publication number
- CN109589603A CN109589603A CN201811454104.4A CN201811454104A CN109589603A CN 109589603 A CN109589603 A CN 109589603A CN 201811454104 A CN201811454104 A CN 201811454104A CN 109589603 A CN109589603 A CN 109589603A
- Authority
- CN
- China
- Prior art keywords
- information
- game operation
- game
- instruction
- text
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
- A63F13/424—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving acoustic input signals, e.g. by using the results of pitch or rhythm extraction or voice recognition
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention provides a kind of game operation control method, device, computer storage medium and computer equipments;This method comprises: receiving the phonetic order of terminal user;Semantic parsing is carried out to the phonetic order, obtains semantic text information;Determine that corresponding game operation instruction and corresponding operation execute subject matter quantity according to the semantic text information;It executes and executes all corresponding game operation of subject matter quantity with game operation instruction and the operation.Technical solution through the invention realizes the manipulation means for increasing on the basis of existing game manipulation means and controlling game operation by voice, reduces the complexity of game operation, improve the playability of game.
Description
Technical field
The present invention relates to computer fields, specifically, the present invention relates to a kind of game operation control methods, device, Jie
Matter and computer equipment.
Background technique
The game operation of usually battle class game in real time is controlled by the both hands of user, however the trip of such game
Action type of playing is more, game operation quantity is more, and for the requirement of real-time of operation height, although game programmer is
A large amount of simplified designs are done to game operation, however user has to from contact game to skilled manipulation through instruction after a period of time
Practice, user is difficult to accomplish the game that upper hand is fought in real time as early as possible.Many users can be not desired to play because the upper hand of such game is difficult
Such game, for example, many users can be because the service speed of hand catch up with idea, the trigger position for being unfamiliar with game operation is led
Cause do not make in time want triggering game operation situations such as and it is angry endlessly.
Therefore the problem of how to reduce the complexity of the game operation of battle class game in real time becomes urgent need to resolve.
Summary of the invention
The present invention in view of the shortcomings of the prior art, provides a kind of game operation control method, device, medium and computer
Equipment, technical solution, realizes that increase controls game behaviour by voice on the basis of existing game manipulation means through the invention
The manipulation means of work, reduce the complexity of game operation, improve the playability of game.
The embodiment of the present invention provides a kind of game operation control method according to first aspect, comprising:
Receive the phonetic order of terminal user;
Semantic parsing is carried out to the phonetic order, obtains semantic text information;
Determine that corresponding game operation instruction and corresponding operation execute subject matter quantity according to the semantic text information;
It executes and executes all corresponding game operation of subject matter quantity with game operation instruction and the operation.
It is further, described to determine that corresponding operation executes subject matter quantity according to the semantic text information, comprising:
Judge whether the semantic text information includes quantity information;
If comprising executing subject matter quantity for the quantity information as the operation;
If not including, obtains by the pre-set default action number of executions of the terminal user, the default is grasped
Make number of executions as the operation and executes subject matter quantity.
Further, the execution executes all corresponding trip of subject matter quantity with game operation instruction and the operation
Play operation, comprising:
It determines needed for executing game operation corresponding with game operation instruction and operation execution subject matter quantity
Resources supplIes;
Obtain Current resource information;
Judge whether the Current resource information meets the resources supplIes;
It is grasped if satisfied, then executing and executing all corresponding game of subject matter quantity with game operation instruction and the operation
Make;
If not satisfied, then issuing default prompt information according to the result of judgement.
Further, the resources supplIes include support building information, currency needed for executing the game operation
Type and threshold value corresponding with currency type;
The acquisition Current resource information, comprising:
It obtains currently deposit value corresponding with the currency type and completes the building information of construction;
It is described to judge whether the Current resource information meets the resources supplIes, comprising:
Judge whether the corresponding deposit value of the currency type is more than or equal to the threshold value and completion construction
Building information whether include the support building information;
If the corresponding deposit value of the currency type is more than or equal to the threshold value and the building for completing construction
Object information includes the support building information, it is determined that the Current resource information meets the resources supplIes;Otherwise, it determines
The Current resource information is unsatisfactory for the resources supplIes.
Further, the result of judgement issues default prompt information, comprising:
Determine that difference resource needed for the Current resource information will meet the resources supplIes is believed according to the result of judgement
Breath, the difference resource information includes the difference of the currency type corresponding deposit value and the threshold value, and/or is supported
Building information;
Issue the prompt information comprising the difference resource information.
It is further, described to determine that corresponding game operation instructs according to the semantic text information, comprising:
Go out operational order keyword from the semantic text information extraction according to preset rules;
The operational order keyword all text instruction's information corresponding with the instruction of all game operations are matched,
The determining and highest matched text command information of the operational order Keywords matching degree;
By the corresponding game operation instruction of the matched text command information as the corresponding trip of the semantic text information
Play operational order.
Further, further includes:
The phonetic order replacement request of terminal user is received, the phonetic order replacement request includes that the terminal user thinks
Replace the target game operational order of corresponding text instruction's information and text instruction's information of terminal user input;
It is the text of terminal user input by the corresponding text instruction's change dump of the target game operational order
Command information.
The embodiment of the present invention provides a kind of game operation control device according to second aspect, comprising:
Command reception module, for receiving the phonetic order of terminal user;
Parsing module obtains semantic text information for carrying out semantic parsing to the phonetic order;
Determining module is instructed, for determining corresponding game operation instruction and corresponding behaviour according to the semantic text information
Make to execute subject matter quantity;
Execution module executes all corresponding trip of subject matter quantity with game operation instruction and the operation for executing
Play operation.
The embodiment of the present invention provides a kind of computer readable storage medium according to the third aspect, is stored thereon with computer
Program, the program realize above-mentioned game operation control method when being executed by processor.
The embodiment of the present invention provides a kind of computer equipment according to fourth aspect, and the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes above-mentioned game operation control method.
In embodiments of the present invention, by receiving the phonetic order of terminal user, language then is carried out to the phonetic order
Justice parsing, obtains semantic text information, determines corresponding game operation instruction and corresponding further according to the semantic text information
Operation executes subject matter quantity;It executes and executes all corresponding game of subject matter quantity with game operation instruction and the operation
Operation is realized the manipulation means for increasing on the basis of existing game manipulation means and controlling game operation by voice, is reduced
The complexity of game operation improves the playability of game.
Specifically, game operation is controlled by voice, user can more rapidly input game operation in gaming
Instruction, the trigger position without remembeing each game operation instruction, user can also directly say game operation instruction and need
The quantity to be executed is instructed without the corresponding game operation of repeated trigger, more convenient in operation.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the tune game operation control method flow diagram of one embodiment of the invention;
Fig. 2 is the structural schematic diagram of the game operation control device of one embodiment of the invention;
Fig. 3 is the structural schematic diagram of the computer equipment of an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form, " first " used herein, " second " are only used for distinguishing same technology special
Sign, is not limited the sequence of the technical characteristic and quantity etc..It is to be further understood that in specification of the invention
The wording " comprising " used refers to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that depositing
Or add other one or more features, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
The embodiment of the invention provides a kind of game operation control methods, below in conjunction with attached drawing to specific implementation of the invention
Mode describes in detail.As shown in Figure 1, game operation control method provided in an embodiment of the present invention the following steps are included:
S110: the phonetic order of terminal user is received.
In the present embodiment, the phonetic order refers to the voice that terminal user says.Terminal user inputs phonetic order
Mode can be by various ways.For example, terminal user wants to need first long-pressing when input phonetic order or clicks or double-click
Pre-set button stops long-pressing when finishing phonetic order or clicks or double-click again pre-set button again, final only to obtain
Terminal user is to the voice received between two trigger actions of pre-set button;Another kind is when terminal user opens game
Automatic to start and run always, terminal user can input phonetic order at any time, without operating pre-set button.
Preferably, the input mode of both phonetic orders can provide a switch to terminal user, by terminal user
The input mode of phonetic order is selected by trigger switch.
S120: semantic parsing is carried out to the phonetic order, obtains semantic text information.
In the present embodiment, in order to determine what instruction terminal user has input by voice, terminal user is being received
Phonetic order after, need to carry out semantic parsing to phonetic order, obtained semantic parsing result is semantic text information.
For example, terminal user has said three carrying soldiers, after receiving the phonetic order of terminal user, to phonetic order into
The semantic parsing of row, it will be able to obtain semantic text information " three carrying soldiers ".
S130: determine that corresponding game operation instruction and corresponding operation execute subject matter according to the semantic text information
Quantity.
It is in one embodiment, described to determine that corresponding game operation instructs according to the semantic text information, comprising:
Go out operational order keyword from the semantic text information extraction according to preset rules;
The operational order keyword all text instruction's information corresponding with the instruction of all game operations are matched,
The determining and highest matched text command information of the operational order Keywords matching degree;
By the corresponding game operation instruction of the matched text command information as the corresponding trip of the semantic text information
Play operational order.
It in the present embodiment, is in advance that corresponding text instruction's information is arranged in all game operation instructions, when receiving
After the phonetic order of terminal user, semantic parsing is carried out to phonetic order, semantic text information is obtained and therefrom extracts operation
Keyword is instructed, then operational order keyword is matched with all text instruction's information prestored, will be closed with operational order
Game operation corresponding to the highest text instruction's information of keyword matching degree is instructed as trip corresponding with semantic text information
Play operational order, so that it is determined that game operation instruction of triggering wanted by phonetic order by terminal user.
For example, it is " to carry that corresponding text instruction's information, which is arranged, for " soldier is carried in production " this game operation instruction in advance
Soldier ", it is " crystal tower " that corresponding text instruction's information, which is arranged, for " production crystal tower " this game operation instruction, if current solution
The semantic text information separated out is " three carrying dogfaces ", can be extracted from " three carrying dogfaces " " carry dogface " this
Then a operational order keyword " will carry dogface " and the text instruction's information " carrying soldier " prestored and " crystal tower " progress
Match, be " carrying soldier " with " carrying dogface " highest text instruction's information of matching degree, then " carrying soldier ", corresponding game is grasped
" soldier is carried in production " is instructed to instruct as game operation corresponding with semantic text information.
Specifically, it can be realized by Chinese words segmentation and extract operational order pass from the semantic text information
Keyword.
In a kind of possible embodiment, the semantic text information can be divided into several words according to part of speech,
Using the word of default part of speech type as operational order keyword, wherein the word which part of speech is specifically arranged is closed as operational order
Keyword can be determined according to all text instruction's information pre-set, it should be noted that operational order keyword can
To refer to the independent word for only including a part of speech, such as verb " carrying ", noun " soldier ", may also mean that by two even more than
The portmanteau word that the independent word of different parts of speech to interconnect is constituted, for example be in advance connected with each other verb and noun two
Independent word be set as operational order keyword, can be with according to part of speech if that semantic text information is " three carrying soldiers "
It is divided into number " three ", quantifier " a ", verb " carrying " and noun " soldier ", since verb and noun are connected with each other, will be moved
Word " carrying " and noun " soldier " group are combined into portmanteau word " carrying soldier ", and as operational order keyword.
Preferably, pre-set text instruction's information can also be both configured to custom words, the custom words phase
When in a kind of customized part of speech, when semantic text information being divided into several words according to part of speech using Chinese words segmentation,
Whether the custom words that just directly will test when detecting custom words are as individual word, but regardless of wrapping in the custom words
The word of other parts of speech is contained, and when detecting custom words, directly using custom words as operational order keyword.Than
Such as, custom words are set by text instruction's information " gas acquires soldier ", if that receiving the " production ten of semantic text information
A gas acquires soldier ", according to part of speech divide as a result, verb " production ", number " ten ", quantifier " a " and custom words " watt
This acquisition soldier ", and " gas acquires soldier " is directly used as operational order keyword.
In one embodiment, game operation control method provided by the invention, further comprising the steps of:
S210: receiving the phonetic order replacement request of terminal user, and the phonetic order replacement request includes the terminal
User wants to replace the text instruction of the target game operational order of corresponding text instruction's information and terminal user input
Information;
S220: being terminal user input by the corresponding text instruction's change dump of the target game operational order
Text instruction's information.
In the present embodiment, terminal user can replace game operation and instruct corresponding preset text instruction's information.
For example, terminal user thinks that some game operation instructs corresponding text instruction's information number of words longer or says
When influencing the input of phonetic order not blurt out, terminal user, which can request to instruct the game operation, is changed to number of words
Shorter text instruction's information or say the text instruction's information compared smoothly.For example, game operation instruction " production watt
The corresponding preset text instruction's information of this acquisition soldier " is " production gas acquisition soldier ", and terminal user can believe text instruction
Breath is changed to " production gas soldier " or " gas soldier ".
Further, it is contemplated that text instruction's information of terminal user's replacement may be more personalized, if operational order
The method of determination of keyword be using the word of default part of speech type as operational order keyword, will be semantic then it is possible that appearing in
Text information divide part of speech after, using the word of the part part of speech after division as operational order keyword after, find multiple matchings
The same text instruction's information of degree can not finally determine that the corresponding game operation instruction of which text instruction's information is that terminal is used
What family was wanted.
For example, operational order keyword is set by verb and noun two independent words interconnected in advance, and terminal
It is " the first acquisition soldier " that game operation is instructed " production gas acquires soldier " corresponding text instruction's change dump by user, by game
The corresponding text instruction's change dump of operational order " production crystal ore mining collection soldier " is " the second acquisition soldier ", then terminal in game
User wants production crystal ore mining collection soldier, and the phonetic order assigned is " the second acquisition soldier ", does semantic parsing to phonetic order
The semantic text information obtained afterwards is " the second acquisition soldier ", it can be divided into number " second ", verb " acquisition " according to part of speech
It with noun " soldier ", is established rules really according to operational order keyword, " acquisition soldier " is determined as operational order keyword, then with
Text instruction's information that operational order keyword " acquisition soldier " is matched to has " the first acquisition soldier " and " the second acquisition soldier ", matches journey
Degree is the same, and at this time can not just be determined the corresponding game operation instruction of which text instruction's information as semantic text
The corresponding game operation instruction of information.
Therefore, when receiving the phonetic order replacement request of terminal user, will be associated with phonetic order replacement request
After text instruction's information of the corresponding text instruction's change dump of target game operational order for terminal user's input, target is swum
The corresponding new text instruction's information of play operational order is set as custom words.
It is in one embodiment, described to determine that corresponding operation executes subject matter quantity according to the semantic text information,
Include:
Judge whether the semantic text information includes quantity information;
If comprising executing subject matter quantity for the quantity information as the operation;
If not including, obtains by the pre-set default action number of executions of the terminal user, the default is grasped
Make number of executions as the operation and executes subject matter quantity.
In the present embodiment, the quantity information refers to the number in semantic text information.For example, semantic text information is
" three carrying soldiers " can be divided into number " three ", quantifier " a ", verb " carrying " and noun " soldier " according to part of speech, then can
Number " three " is executed subject matter quantity as operation.
If semantic text information does not include quantity information, the pre-set default action of terminal user is executed into number
Amount executes subject matter quantity as operation.
Specifically, the default action number of executions can be corresponding with the instruction of all game operations.That is, regardless of
What the game operation instruction determined by semantic text information is, if not comprising quantity information in semantic text information,
Just subject matter quantity directly is executed using the preset default action number of executions of terminal user as operation.
Preferably due to which the execution number of different game operation instruction terminal users may be different, for example, being equally soldier
The game operation instruction of kind production type, terminal user's habit produces 5 gas acquisition soldiers every time, and crystal ore mining collection soldier is each
Only production 2.Therefore, the default action number of executions can be corresponding with the game operation instruction determined, that is to say, that
Corresponding default action number of executions can be arranged for the instruction of each game operation in terminal user.For example, for " production gas acquisition
The default action number of executions of this game operation of soldier " instruction setting is 5, for " production crystal ore mining collection soldier " this game operation
The default action number of executions of instruction setting is 2.
S140: it executes and executes all corresponding game operation of subject matter quantity with game operation instruction and the operation.
In the present embodiment, if it is determined that the corresponding game operation instruction of semantic text information be " soldier is carried in production ",
And operating execution subject matter quantity is three, then executes " soldier is carried in production " three times.
In one embodiment, S140: executing and the game operation instructs and the operation executes subject matter quantity all
Corresponding game operation, comprising:
S141: it determines and executes game operation corresponding with game operation instruction and operation execution subject matter quantity
Required resources supplIes.
S142: Current resource information is obtained.
S143: judge whether the Current resource information meets the resources supplIes.
S144: if satisfied, then executing all corresponding with game operation instruction and operation execution subject matter quantity
Game operation;If not satisfied, then issuing default prompt information according to the result of judgement.
In the present embodiment, due to producing the tasks such as the soldier of any arm of the services or the building of any building type of construction all
It needs to consume the resource in game, includes step S1400 before step S141 therefore, judge that the game operation instruction corresponds to
Game operation whether need to consume game resource.If you do not need to consumption game resource, then execute the game operation;If
It needs to consume game resource, thens follow the steps S141.
That is, needing to judge whether the game operation that it to be executed needs after terminal user assigns phonetic order
Consume game resource.The game resource is different in different specific game, for example, game resource may include currency
Resource and support building information.Wherein, currency resource may include gas resources, crystal ore resources etc., and support building
Information refers to that building has multiple ranks, to build high level building and the building for first building low level is needed to be propped up
It holds.Also, the corresponding resources supplIes of different game operations are different.
Wherein, the resources supplIes include support building information, currency type needed for executing the game operation with
And threshold value corresponding with currency type.
In one embodiment, S142: Current resource information is obtained, comprising:
It obtains currently deposit value corresponding with the currency type and completes the building information of construction.
Correspondingly, S143: judge whether the Current resource information meets the resources supplIes, comprising:
Judge whether the corresponding deposit value of the currency type is more than or equal to the threshold value and completion construction
Building information whether include the support building information;
If the corresponding deposit value of the currency type is more than or equal to the threshold value and the building for completing construction
Object information includes the support building information, it is determined that the Current resource information meets the resources supplIes;Otherwise, it determines
The Current resource information is unsatisfactory for the resources supplIes.
Carried in the resources supplIes that soldier needs for example, to produce gas, the currency type for needing to consume have gold coin and
Gas, the threshold value of gold coin are 50, and the threshold value of gas is 10 units, and supports that building information is a military camp.
If the gold coin deposit value in going game account is more than or equal to 50, it is single that such as 70 and gas deposit value are more than or equal to 10
Position, such as 20, and currently complete have military camp in the building information built, it is determined that described in the Current resource information meets
Resources supplIes, as long as conversely, there is any one condition not meet in resources supplIes, it is determined that the Current resource information meets
The resources supplIes.
In one embodiment, default prompt information S144: is issued according to the result of judgement, comprising:
Determine that difference resource needed for the Current resource information will meet the resources supplIes is believed according to the result of judgement
Breath, the difference resource information includes the difference of the currency type corresponding deposit value and the threshold value, and/or is supported
Building information;
Issue the prompt information comprising the difference resource information.
Such as, if it is determined that terminal user will produce two gas and carry soldier, be equivalent to execution and produce a gas twice
The game operation for carrying soldier, that is, need to consume 100 gold coins and 20 unit gas and a military camp, and currently has 70 gold
Coin, 20 unit gas and a military camp, can determine that Current resource information is not able to satisfy resources supplIes, then can determine that difference provides
Source information is 30, gold coin, and issues prompt information and notify terminal user, for example pass through voice or text notification terminal user
The game operation for executing two gas carrying soldiers of generation also lacks 30 gold coins.
Preferably, in step S144, if it is determined that Current resource information is unsatisfactory for the resources supplIes, according to judgement
As a result before issuing default prompt information, the game operation for being currently able to execute is determined according to Current resource information judgement,
The game operation executed is currently able to described in execution.
Such as in the above example, the game operation for executing two gas carrying soldiers of generation also lacks 30 gold coins, however
Current resource information, which can satisfy, executes the corresponding resources supplIes of a game operation, carries then a gas can be produced first
Soldier, and determine game resource required for executing remaining game operation.
Technical solution for a better understanding of the present invention, the embodiment of the invention also provides a kind of controls of game operation to fill
It sets, as shown in Fig. 2, comprising the following modules:
Command reception module 110, for receiving the phonetic order of terminal user.
Parsing module 120 obtains semantic text information for carrying out semantic parsing to the phonetic order.
Determining module 130 is instructed, for determining that corresponding game operation is instructed and corresponded to according to the semantic text information
Operation execute subject matter quantity.
In one embodiment, described instruction determining module 130, comprising:
Keyword extraction submodule, for going out operational order key from the semantic text information extraction according to preset rules
Word.
Match information determines submodule, is used for operational order keyword institute corresponding with the instruction of all game operations
There is text instruction's information to be matched, it is determining to believe with the highest matched text instruction of the operational order Keywords matching degree
Breath.
Game operation, which instructs, determines submodule, for making the corresponding game operation instruction of the matched text command information
For the corresponding game operation instruction of the semantic text information.
It in the present embodiment, is in advance that corresponding text instruction's information is arranged in all game operation instructions, when receiving
After the phonetic order of terminal user, semantic parsing is carried out to phonetic order, semantic text information is obtained and therefrom extracts operation
Keyword is instructed, then operational order keyword is matched with all text instruction's information prestored, will be closed with operational order
Game operation corresponding to the highest text instruction's information of keyword matching degree is instructed as trip corresponding with semantic text information
Play operational order, so that it is determined that game operation instruction of triggering wanted by phonetic order by terminal user.
Specifically, it can be realized by Chinese words segmentation and extract operational order pass from the semantic text information
Keyword.
In a kind of possible embodiment, the semantic text information can be divided into several words according to part of speech,
Using the word of default part of speech type as operational order keyword, wherein the word which part of speech is specifically arranged is closed as operational order
Keyword can be determined according to all text instruction's information pre-set, it should be noted that operational order keyword can
To refer to the independent word for only including a part of speech, such as verb " carrying ", noun " soldier ", may also mean that by two even more than
The portmanteau word that the independent word of different parts of speech to interconnect is constituted, for example be in advance connected with each other verb and noun two
Independent word be set as operational order keyword, can be with according to part of speech if that semantic text information is " three carrying soldiers "
It is divided into number " three ", quantifier " a ", verb " carrying " and noun " soldier ", since verb and noun are connected with each other, will be moved
Word " carrying " and noun " soldier " group are combined into portmanteau word " carrying soldier ", and as operational order keyword.
Preferably, pre-set text instruction's information can also be both configured to custom words, the custom words phase
When in a kind of customized part of speech, when semantic text information being divided into several words according to part of speech using Chinese words segmentation,
Whether the custom words that just directly will test when detecting custom words are as individual word, but regardless of wrapping in the custom words
The word of other parts of speech is contained, and when detecting custom words, directly using custom words as operational order keyword.Than
Such as, custom words are set by text instruction's information " gas acquires soldier ", if that receiving the " production ten of semantic text information
A gas acquires soldier ", according to part of speech divide as a result, verb " production ", number " ten ", quantifier " a " and custom words " watt
This acquisition soldier ", and " gas acquires soldier " is directly used as operational order keyword.
In one embodiment, game operation control device provided by the invention, further includes with lower module:
Replacement request receiving module 210, for receiving the phonetic order replacement request of terminal user, the phonetic order is more
Changing request includes that the terminal user wants to replace the target game operational order of corresponding text instruction's information and the terminal
Text instruction's information of user's input.
Instruction replacement module 220, for being institute by the corresponding text instruction's change dump of the target game operational order
State text instruction's information of terminal user's input.
Further, it is contemplated that text instruction's information of terminal user's replacement may be more personalized, if operational order
The method of determination of keyword be using the word of default part of speech type as operational order keyword, will be semantic then it is possible that appearing in
Text information divide part of speech after, using the word of the part part of speech after division as operational order keyword after, find multiple matchings
The same text instruction's information of degree can not finally determine that the corresponding game operation instruction of which text instruction's information is that terminal is used
What family was wanted.
In one embodiment, described instruction determining module 130, comprising:
Quantity information judging submodule, for judging whether the semantic text information includes quantity information;
Operation executes subject matter quantity and determines submodule, is used for when the semantic text information includes quantity information, will
The quantity information executes subject matter quantity as the operation;When the semantic text information does not include quantity information, obtain
It takes by the pre-set default action number of executions of the terminal user, using the default action number of executions as the operation
Execute subject matter quantity.
Specifically, the default action number of executions can be corresponding with the instruction of all game operations.That is, regardless of
What the game operation instruction determined by semantic text information is, if not comprising quantity information in semantic text information,
Just subject matter quantity directly is executed using the preset default action number of executions of terminal user as operation.
Preferably due to which the execution number of different game operation instruction terminal users may be different, for example, being equally soldier
The game operation instruction of kind production type, terminal user's habit produces 5 gas acquisition soldiers every time, and crystal ore mining collection soldier is each
Only production 2.Therefore, the default action number of executions can be corresponding with the game operation instruction determined, that is to say, that
Corresponding default action number of executions can be arranged for the instruction of each game operation in terminal user.For example, for " production gas acquisition
The default action number of executions of this game operation of soldier " instruction setting is 5, for " production crystal ore mining collection soldier " this game operation
The default action number of executions of instruction setting is 2.
Execution module 140, it is all corresponding with game operation instruction and operation execution subject matter quantity for executing
Game operation.
In one embodiment, execution module 140, comprising:
Resources supplIes determine submodule 141, execute mark with game operation instruction and the operation for determining to execute
The corresponding game operation of object quantity needed for resources supplIes.
Resource information acquisition submodule 142, for obtaining Current resource information.
Resources supplIes judging submodule 143, for judging whether the Current resource information meets the resources supplIes.
Implementation sub-module 144, for executing and the game when the Current resource information meets the resources supplIes
Operational order and the operation execute all corresponding game operation of subject matter quantity;Described in being unsatisfactory for when the Current resource information
When resources supplIes, default prompt information is issued according to the result of judgement.
In the present embodiment, due to producing the tasks such as the soldier of any arm of the services or the building of any building type of construction all
Need to consume the resource in game, therefore, the game operation control device of the present embodiment determines submodule in execution resources supplIes
Before 141 corresponding functions, the corresponding function of resource consumption judging submodule 1400 is also executed,
The resource consumption judging submodule 1400, for judging whether the game operation instructs corresponding game operation
It needs to consume game resource.If you do not need to consumption game resource, then execute the game operation;If necessary to consume game money
Source then executes the resources supplIes and determines the corresponding function of submodule 141.
That is, needing to judge whether the game operation that it to be executed needs after terminal user assigns phonetic order
Consume game resource.The game resource is different in different specific game, for example, game resource may include currency
Resource and support building information.Wherein, currency resource may include gas resources, crystal ore resources etc., and support building
Information refers to that building has multiple ranks, to build high level building and the building for first building low level is needed to be propped up
It holds.Also, the corresponding resources supplIes of different game operations are different.
Wherein, the resources supplIes include support building information, currency type needed for executing the game operation with
And threshold value corresponding with currency type.
In one embodiment, resource information acquisition submodule 142, is specifically used for:
It obtains currently deposit value corresponding with the currency type and completes the building information of construction.
Correspondingly, resources supplIes judging submodule 143, comprising:
Judging unit, for judging whether the corresponding deposit value of the currency type is more than or equal to the threshold value, with
And whether the building information for completing construction includes the support building information.
Resources supplIes judging unit, for being more than or equal to the threshold value when the corresponding deposit value of the currency type,
And the building information for completing construction determines the Current resource information satisfaction when including the supports building information
The resources supplIes;Otherwise, it determines the Current resource information is unsatisfactory for the resources supplIes.
In one embodiment, implementation sub-module 144, comprising:
Difference information determination unit determines that the Current resource information will meet the resource for the result according to judgement
Difference resource information needed for condition, the difference resource information include the corresponding deposit value of the currency type and the consumption
The difference of threshold value, and/or support building information.
Prompt information issue unit, for issuing the prompt information comprising the difference resource information.
Preferably, implementation sub-module 144 is also used to before issuing default prompt information according to the result of judgement according to institute
It states the judgement of Current resource information and determines the game operation for being currently able to execute, the game operation executed is currently able to described in execution.
It should be noted that game operation control device provided in an embodiment of the present invention can be realized above-mentioned game operation control
The function that embodiment of the method processed is realized, the specific implementation of function is referring to the description in above-mentioned game operation control method, herein
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the program
Above-mentioned game operation control method is realized when being executed by processor.Wherein, the storage medium includes but is not limited to any type
Disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM
(Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only
Memory, Erarable Programmable Read only Memory), EEPROM (Electrically EraSable Programmable
Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, storage
Medium includes by equipment (for example, computer) with any medium for the form storage or transmission information that can be read.It can be read-only
Memory, disk or CD etc..
The embodiment of the present invention also provides a kind of computer equipment, and the computer equipment includes:
One or more processors 710;
Storage device 720, for storing one or more programs 700,
When one or more of programs 700 are executed by one or more of processors 710, so that one or more
A processor 710 realizes above-mentioned game operation control method.
It is illustrated in figure 3 the structural schematic diagram of computer equipment of the present invention, including processor 710, storage device 720, defeated
Enter the devices such as unit 730 and display unit 740.It will be understood by those skilled in the art that structure devices shown in Fig. 3 not structure
The restriction of pairs of all computer equipments may include than illustrating more or fewer components, or the certain components of combination.Storage
Device 720 can be used for storing application program 700 and each functional module, and the operation of processor 710 is stored in answering for storage device 720
With program 700, thereby executing the various function application and data processing of equipment.Storage device 720 can be built-in storage or
External memory, or including both built-in storage and external memory.Built-in storage may include read-only memory, programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage
Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Storage device disclosed in this invention includes but not
It is limited to the storage device of these types.Storage device 720 disclosed in this invention is only used as example rather than as restriction.
Input unit 730 is used to receive the input of signal, and the correlations such as selection voice document for receiving user's input are asked
It asks.Input unit 730 may include touch panel and other input equipments.Touch panel collects user on it or nearby
Touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel or in touch panel
Neighbouring operation), and corresponding attachment device is driven according to a pre-set procedure;Other input equipments may include but unlimited
In one of physical keyboard, function key (for example playing control button, switch key etc.), trace ball, mouse, operating stick etc. or
It is a variety of.Display unit 740 can be used for showing user input information or be supplied to user information and computer equipment it is each
Kind menu.The forms such as liquid crystal display, Organic Light Emitting Diode can be used in display unit 740.Processor 710 is computer equipment
Control centre be stored in storage by running or executing using the various pieces of various interfaces and the entire computer of connection
Software program and/or module in device 720, and the data being stored in storage device are called, it performs various functions and locates
Manage data.
In one embodiment, computer equipment includes one or more processors 710, and one or more storage dresses
720 are set, one or more application program 700, wherein one or more of application programs 700 are stored in storage device 720
In and be configured as being executed by one or more of processors 710, one or more of application programs 700 are configured to hold
Game operation control method described in row above embodiments.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It should be understood that each functional unit in various embodiments of the present invention can be integrated in a processing module,
It can be physically existed alone, can also be integrated in two or more units in a module with each unit.It is above-mentioned integrated
Module both can take the form of hardware realization, can also be realized in the form of software function module.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of game operation control method characterized by comprising
Receive the phonetic order of terminal user;
Semantic parsing is carried out to the phonetic order, obtains semantic text information;
Determine that corresponding game operation instruction and corresponding operation execute subject matter quantity according to the semantic text information;
It executes and executes all corresponding game operation of subject matter quantity with game operation instruction and the operation.
2. game operation control method as described in claim 1, which is characterized in that
It is described to determine that corresponding operation executes subject matter quantity according to the semantic text information, comprising:
Judge whether the semantic text information includes quantity information;
If comprising executing subject matter quantity for the quantity information as the operation;
If not including, obtains by the pre-set default action number of executions of the terminal user, the default action is held
Line number amount executes subject matter quantity as the operation.
3. game operation control method as described in claim 1, which is characterized in that
The execution executes all corresponding game operation of subject matter quantity with game operation instruction and the operation, comprising:
Determine money needed for executing game operation corresponding with game operation instruction and operation execution subject matter quantity
Source condition;
Obtain Current resource information;
Judge whether the Current resource information meets the resources supplIes;
The all corresponding game operation of subject matter quantity is executed with game operation instruction and the operation if satisfied, then executing;
If not satisfied, then issuing default prompt information according to the result of judgement.
4. game operation control method as claimed in claim 3, which is characterized in that
The resources supplIes include support building information, currency type needed for executing the game operation and with currency class
The corresponding threshold value of type;
The acquisition Current resource information, comprising:
It obtains currently deposit value corresponding with the currency type and completes the building information of construction;
It is described to judge whether the Current resource information meets the resources supplIes, comprising:
Judge the corresponding deposit value of the currency type whether be more than or equal to the threshold value and it is described complete construction build
Build whether object information includes the support building information;
If the corresponding deposit value of the currency type is more than or equal to the threshold value and the building letter for completing construction
Breath includes the support building information, it is determined that the Current resource information meets the resources supplIes;Otherwise, it determines described
Current resource information is unsatisfactory for the resources supplIes.
5. game operation control method as claimed in claim 4, which is characterized in that described issued according to the result of judgement is preset
Prompt information, comprising:
Difference resource information needed for the Current resource information will meet the resources supplIes, institute are determined according to the result of judgement
The difference that difference resource information includes the currency type corresponding deposit value and the threshold value is stated, and/or supports building
Object information;
Issue the prompt information comprising the difference resource information.
6. game operation control method as described in claim 1, which is characterized in that
It is described to determine that corresponding game operation instructs according to the semantic text information, comprising:
Go out operational order keyword from the semantic text information extraction according to preset rules;
The operational order keyword all text instruction's information corresponding with the instruction of all game operations are matched, are determined
With the highest matched text command information of the operational order Keywords matching degree;
By the corresponding game operation instruction of the matched text command information as the corresponding game behaviour of the semantic text information
It instructs.
7. game operation control method as described in claim 1, which is characterized in that further include:
The phonetic order replacement request of terminal user is received, the phonetic order replacement request includes that the terminal user wants more
Change the target game operational order of corresponding text instruction's information and text instruction's information of terminal user input;
It is the text instruction of terminal user input by the corresponding text instruction's change dump of the target game operational order
Information.
8. a kind of game operation control device characterized by comprising
Command reception module, for receiving the phonetic order of terminal user;
Parsing module obtains semantic text information for carrying out semantic parsing to the phonetic order;
Determining module is instructed, for determining that corresponding game operation instruction and corresponding operation are held according to the semantic text information
Row subject matter quantity;
Execution module executes all corresponding game behaviour of subject matter quantity with game operation instruction and the operation for executing
Make.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
Such as claim 1-7 described in any item game operation control methods are realized when row.
10. a kind of computer equipment, which is characterized in that the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as the described in any item game operation control methods of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811454104.4A CN109589603B (en) | 2018-11-30 | 2018-11-30 | Game operation control method, device, medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811454104.4A CN109589603B (en) | 2018-11-30 | 2018-11-30 | Game operation control method, device, medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109589603A true CN109589603A (en) | 2019-04-09 |
CN109589603B CN109589603B (en) | 2022-09-13 |
Family
ID=65959040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811454104.4A Active CN109589603B (en) | 2018-11-30 | 2018-11-30 | Game operation control method, device, medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109589603B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111939559A (en) * | 2019-05-16 | 2020-11-17 | 北京车和家信息技术有限公司 | Control method and device for vehicle-mounted voice game |
CN112100045A (en) * | 2020-09-01 | 2020-12-18 | 广州掌淘网络科技有限公司 | Method and equipment for identifying game similarity |
CN112295220A (en) * | 2020-10-29 | 2021-02-02 | 北京字节跳动网络技术有限公司 | AR game control method, AR game control device, electronic equipment and storage medium |
CN112742024A (en) * | 2020-08-20 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN114931747A (en) * | 2022-07-25 | 2022-08-23 | 深圳市景创科技电子股份有限公司 | Game controller and intelligent voice control method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1995031264A1 (en) * | 1994-05-16 | 1995-11-23 | Lazer-Tron Corporation | Speech enhanced game apparatus and method therefor |
CN102698434A (en) * | 2011-03-28 | 2012-10-03 | 德信互动科技(北京)有限公司 | Device and method for implementing game based on conversation |
CN105390135A (en) * | 2015-10-12 | 2016-03-09 | 四川长虹电器股份有限公司 | Game voice control system |
CN106178496A (en) * | 2016-08-10 | 2016-12-07 | 合肥泰壤信息科技有限公司 | A kind of game control method operated based on body-sensing and sound and system |
CN107469350A (en) * | 2017-07-15 | 2017-12-15 | 深圳酷旗互联网有限公司 | A kind of Card Games control method and device |
CN107469349A (en) * | 2017-09-14 | 2017-12-15 | 光锐恒宇(北京)科技有限公司 | The control method and device of a kind of game application |
-
2018
- 2018-11-30 CN CN201811454104.4A patent/CN109589603B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1995031264A1 (en) * | 1994-05-16 | 1995-11-23 | Lazer-Tron Corporation | Speech enhanced game apparatus and method therefor |
CN102698434A (en) * | 2011-03-28 | 2012-10-03 | 德信互动科技(北京)有限公司 | Device and method for implementing game based on conversation |
CN105390135A (en) * | 2015-10-12 | 2016-03-09 | 四川长虹电器股份有限公司 | Game voice control system |
CN106178496A (en) * | 2016-08-10 | 2016-12-07 | 合肥泰壤信息科技有限公司 | A kind of game control method operated based on body-sensing and sound and system |
CN107469350A (en) * | 2017-07-15 | 2017-12-15 | 深圳酷旗互联网有限公司 | A kind of Card Games control method and device |
CN107469349A (en) * | 2017-09-14 | 2017-12-15 | 光锐恒宇(北京)科技有限公司 | The control method and device of a kind of game application |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111939559A (en) * | 2019-05-16 | 2020-11-17 | 北京车和家信息技术有限公司 | Control method and device for vehicle-mounted voice game |
CN112742024A (en) * | 2020-08-20 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN112742024B (en) * | 2020-08-20 | 2023-02-10 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN112100045A (en) * | 2020-09-01 | 2020-12-18 | 广州掌淘网络科技有限公司 | Method and equipment for identifying game similarity |
CN112295220A (en) * | 2020-10-29 | 2021-02-02 | 北京字节跳动网络技术有限公司 | AR game control method, AR game control device, electronic equipment and storage medium |
CN114931747A (en) * | 2022-07-25 | 2022-08-23 | 深圳市景创科技电子股份有限公司 | Game controller and intelligent voice control method |
Also Published As
Publication number | Publication date |
---|---|
CN109589603B (en) | 2022-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109589603A (en) | Game operation control method, device, medium and computer equipment | |
RU2316039C2 (en) | System for inputting data from letter and digit keyboard with usage of a game controller | |
KR101359718B1 (en) | Conversation Managemnt System and Method Thereof | |
CN109766013A (en) | Poetry sentence input recommendation method and device and electronic equipment | |
KR101063283B1 (en) | Method, apparatus and recording medium for providing touch game | |
JP2012517061A (en) | Data input system | |
CN109568938A (en) | More resource game touch operation methods, device, storage medium and terminal | |
US20170296914A1 (en) | Method and apparatus for adapting to gaming venue states | |
CN105045588A (en) | Method and apparatus for switching input method skins | |
US20060252542A1 (en) | Device and method for a dynamically configurable user interface in a game of chance | |
CN109522482B (en) | Game application classification page display method and device, storage medium and terminal | |
CN115082602A (en) | Method for generating digital human, training method, device, equipment and medium of model | |
CN112269898A (en) | Background music obtaining method and device, electronic equipment and readable storage medium | |
US20080095444A1 (en) | Information recognition device operating with low power consumption | |
US20050141770A1 (en) | Split on-screen keyboard | |
CN111292744A (en) | Voice instruction recognition method, system and computer readable storage medium | |
CN107132927B (en) | Input character recognition method and device for recognizing input characters | |
Ji et al. | Design and implementation of a game interface interaction on smartphone | |
CN104484366B (en) | Site information providing method and device based on input method | |
CN116339871A (en) | Control method and device of terminal equipment, terminal equipment and storage medium | |
KR102466302B1 (en) | Output system, sever and output method for game effect sound | |
JP2015085175A (en) | Rhythm game service provision method, rhythm game service provision system and program | |
KR101486875B1 (en) | A voice recognition mouse circuit and a method of operating the same | |
KR20110068708A (en) | Foreign language studying method and apparatus associating with computer game | |
CN111931942A (en) | Method and device for providing machine learning application, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |