CN108619717A - Determination method, apparatus, storage medium and the electronic device of operation object - Google Patents

Determination method, apparatus, storage medium and the electronic device of operation object Download PDF

Info

Publication number
CN108619717A
CN108619717A CN201810236887.2A CN201810236887A CN108619717A CN 108619717 A CN108619717 A CN 108619717A CN 201810236887 A CN201810236887 A CN 201810236887A CN 108619717 A CN108619717 A CN 108619717A
Authority
CN
China
Prior art keywords
target
distance
weight
attribute
run
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
Application number
CN201810236887.2A
Other languages
Chinese (zh)
Other versions
CN108619717B (en
Inventor
彭甜
刘天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810236887.2A priority Critical patent/CN108619717B/en
Publication of CN108619717A publication Critical patent/CN108619717A/en
Application granted granted Critical
Publication of CN108619717B publication Critical patent/CN108619717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
    • A63F2300/6054Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands by generating automatically game commands to assist the player, e.g. automatic braking in a driving game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/65Methods for processing data by generating or executing the game program for computing the condition of a game character
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Abstract

The invention discloses determination method, apparatus, storage medium and the electronic devices of a kind of operation object.Wherein, this method includes:In the case where detecting object run, the existing object in current display interface is obtained;Obtain the corresponding attribute value of multiple characteristic attributes of each object in existing object;The corresponding target weight of each object is determined according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes, wherein target weight is used to indicate accuracy rate of each object as the corresponding operation object of object run;The object that target weight in existing object is met to goal condition is determined as the corresponding operation object of object run.Accuracy rate relatively low technical problem when the present invention solves determining object run corresponding operation object.

Description

Determination method, apparatus, storage medium and the electronic device of operation object
Technical field
The present invention relates to computer realms, are situated between in particular to a kind of determination method, apparatus of operation object, storage Matter and electronic device.
Background technology
In certain application programs, when executing operation in the application, it is thus necessary to determine that the object that the operation executes.Than Such as:In game application, control role to be attacked using technical ability, to determine the object of attack of the attack.Traditional game is logical Frequently with following several schemes:It clicks directly on target and carries out target selection;It is automatically selected apart from nearest target when discharging technical ability; And when latch-up-free target, target nearest in a certain range is chosen automatically at regular intervals.But the above Scheme Choice Target may not be that current operation is most suitable for the target chosen.Traditional target selection scheme in application program, for All it is to be not easy to reach the operation of correct result for user, user experience is extremely bad.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides determination method, apparatus, storage medium and the electronic devices of a kind of operation object, so that Few accuracy rate relatively low technical problem when solving to determine object run corresponding operation object.
One side according to the ... of the embodiment of the present invention provides a kind of determination method of operation object, including:It is detecting In the case of object run, the existing object in current display interface is obtained;Obtain each object in the existing object The corresponding attribute value of multiple characteristic attributes;According to the corresponding attribute value of each characteristic attribute in the multiple characteristic attribute Determine the corresponding target weight of each object, wherein the target weight is used to indicate described in each object conduct The accuracy rate of the corresponding operation object of object run;Target weight described in the existing object is met to the object of goal condition It is determined as the corresponding operation object of the object run.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of determining device of operation object, including:First obtains Modulus block, in the case where detecting object run, obtaining the existing object in current display interface;Second obtains Module, the corresponding attribute value of multiple characteristic attributes for obtaining each object in the existing object;First determining module is used In determining the corresponding mesh of each object according to the corresponding attribute value of each characteristic attribute in the multiple characteristic attribute Mark weight, wherein the target weight is used to indicate each object as the corresponding operation object of the object run Accuracy rate;Second determining module, the object for target weight described in the existing object to be met to goal condition are determined as The corresponding operation object of the object run.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of storage medium, which is characterized in that the storage is situated between Computer program is stored in matter, wherein the computer program is arranged to execute described in any of the above-described when operation Method.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of electronic device, including memory and processor, It is characterized in that, computer program is stored in the memory, and the processor is arranged to hold by the computer program Method described in row any of the above-described.
In embodiments of the present invention, it using in the case where detecting object run, obtains in current display interface Existing object;Obtain the corresponding attribute value of multiple characteristic attributes of each object in existing object;According to multiple characteristic attributes In each corresponding attribute value of characteristic attribute determine the corresponding target weight of each object, wherein target weight is used to indicate often Accuracy rate of a object as the corresponding operation object of object run;Target weight in existing object is met to pair of goal condition Mode as being determined as the corresponding operation object of object run is examined during determining object run corresponding operation object The characteristic attribute for considering the various dimensions of each possible operation object may be to the influence of operating accuracy, with reference to each object The corresponding attribute value of multiple characteristic attributes determines the corresponding target weight of each object to indicate each object as operation object Accuracy rate, and more each target weight, the object that target weight is met to goal condition are determined as operation object, to join The characteristic attribute of multiple dimensions is examined to choose the operation object for the operating effect that can most meet object run, is improved to realize The technique effect of accuracy rate when determining object run corresponding operation object, and then solve the corresponding operation of determining object run Accuracy rate relatively low technical problem when object.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the determination method of optional operation object according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of application environment schematic diagram of the determination method of optional operation object according to the ... of the embodiment of the present invention;
Fig. 3 is the schematic diagram according to a kind of determination method of optional operation object of optional embodiment of the invention;
Fig. 4 is the signal according to the determination method of the optional operation object of another kind of optional embodiment of the invention Figure;
Fig. 5 is a kind of schematic diagram of the determining device of optional operation object according to the ... of the embodiment of the present invention;
Fig. 6 is a kind of application scenarios schematic diagram of the determination method of optional operation object according to the ... of the embodiment of the present invention One;
Fig. 7 is a kind of application scenarios schematic diagram of the determination method of optional operation object according to the ... of the embodiment of the present invention Two;
Fig. 8 is a kind of application scenarios schematic diagram of the determination method of optional operation object according to the ... of the embodiment of the present invention Three;And
Fig. 9 is a kind of schematic diagram of optional electronic device according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
One side according to the ... of the embodiment of the present invention provides a kind of determination method of operation object, as shown in Figure 1, should Method includes:
S102 obtains the existing object in current display interface in the case where detecting object run;
S104 obtains the corresponding attribute value of multiple characteristic attributes of each object in existing object;
S106 determines the corresponding target of each object according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes Weight, wherein target weight is used to indicate accuracy rate of each object as the corresponding operation object of object run;
S108, the object that target weight in existing object is met to goal condition are determined as the corresponding operation pair of object run As.
Optionally, in the present embodiment, the determination method of aforesaid operations object can be applied to terminal as shown in Figure 2 In 202 hardware environment constituted.As shown in Fig. 2, terminal 202 in the case where detecting object run, obtains current display Existing object in interface, and the corresponding attribute value of multiple characteristic attributes of each object in existing object is obtained, according to multiple The corresponding attribute value of each characteristic attribute determines the corresponding target weight of each object in characteristic attribute, wherein target weight is used In indicating accuracy rate of each object as the corresponding operation object of object run, target weight in existing object is met into target The object of condition is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, the determination method of aforesaid operations object can be, but not limited to be applied to determine client On end in the scene of the corresponding operation object of object run.Wherein, above-mentioned client can be, but not limited to answer to be various types of With, for example, online education application, instant messaging application, community space application, game application, shopping application, browser application, Financial application, multimedia application, live streaming application etc..Specifically, can be, but not limited to be applied to determine in above-mentioned game application In the scene of the corresponding operation object of object run, or can with but be not limited to be applied in above-mentioned shopping application determine target In the scene for operating corresponding operation object, accuracy rate when determining object run corresponding operation object to improve.It is above-mentioned to be only A kind of example does not do this any restriction in the present embodiment.
It should be noted that in the present embodiment, above-mentioned client is by taking game client as an example, other kinds of client The mode of upper determining operation object is similar to its, and details are not described herein.
Optionally, in the present embodiment, object run can be, but not limited to include:Release skill operation, trip in game The operation etc. launched a offensive in the operation, game of execution task in play.
Optionally, in the present embodiment, the existing object in the current display interface of acquisition can be according to object run It is different and different, such as:Technical ability for attacking class discharges operation, and the existing object of acquisition may be hostile on display interface Player, NPC, wild monster, BOSS etc..Operation is discharged for the technical ability of gain-type, the existing object of acquisition may be on display interface Friend side player.For executing the operation of task class, the existing object of acquisition may be the open country that the task on display interface is specified Monster, BOSS, NPC, stage property etc..
Optionally, in the present embodiment, the information such as characteristic attribute, goal condition can be according to the type and mesh of client Mark operation configure.Such as:By taking the game of MMORPG classes as an example, characteristic attribute may include:Blood volume:That is player role Blood volume numerical value (may be used remaining blood volume percentage indicate), distance:Euclidean distance, mesh i.e. between player role and object It marks towards angle:Angle, the relevant factor of PK patterns i.e. between player's direction vector and the vector of player-object:It can wrap Include target type (player, common monster, elite blame, world Boss), hostile relations, red name player etc., object special state:Task Object, current selected object, Current lock object are currently attacking the object of the corresponding object of client.
Optionally, in the present embodiment, target weight can be, but not limited to by arrange in the client based on multiple-factor The target autoselector of weight equation is determined, and client is corresponding in the multiple characteristic attributes for getting each object After attribute value, attribute value is input in the target autoselector based on multiple-factor weight equation, by being based on multiple-factor weight The target autoselector of formula determines the corresponding target weight of each object by the way that attribute value is updated to weight equation, visitor Family end, which is got, to be met the object of goal condition after target weight by target weight in existing object and is determined as object run correspondence Operation object.
Optionally, in the present embodiment, it for the object run under special screne, provides and a kind of is specified based on user The preferential selector of specific objective to obtain special factor variable (i.e. characteristic attribute), and is transferred data to and is weighed based on the factor The target autoselector of weight formula, to choose specific intended target automatically.
Such as:In the game of above-mentioned MMORPG classes, according to scene needs, following several specific factors are created:
Task object type:That is the target type of particular task, applied to doing task scene.
Current lock target:The target that i.e. user specifies manually is applied to more people's scene of fighting.User can pass through target Choose UI, the specified target preferentially attacked.
Attacking the target of the corresponding object of client:Currently the corresponding object of client is being attacked Target.Strange scene is brushed applied to field, selector can preferentially choose my monster of attack or other players, in brush monster In the process, itself is can be well protected not attacked.
In an optional embodiment, by taking player exercises role in game client discharges technical ability as an example, in client In the case of detecting the object run that player 1 carries out release technical ability 1 on end, it is current right in current display interface to obtain As including:Game player 2, game player 3, NPC1 and open country blame 1, and the characteristic attribute under the scene is set as:Blood volume, distance and right As type, the weight coefficient of characteristic attribute be the weight coefficient of blood volume be 0.6, the weight coefficient of distance is 0.4, different object class Type corresponds to different weight coefficients, and the weight coefficient of player type is that the weight coefficient of 0.7, NPC types is 1, common wild strange power Weight coefficient is 0.3, obtains the corresponding attribute value of above-mentioned multiple characteristic attributes of each object in existing object, such as:Game is played 2 blood volumes 43% of family, the distance between player 1 5.2m, object type is player type;3 blood volume 78% of game player, with player The distance between 1 3.4m, object type are player type;NPC1 blood volumes 100%, the distance between player 1 5.5m, object class Type is NPC types;Strange 1 blood volume 13% in open country, the distance between player 1 6.6m, object type are common wild strange type, pass through meter The form for the weight coefficient that the weighted sum of calculation blood volume and distance is multiplied by object type determines the corresponding target weight of each object, example Such as:The target weight of game player 2=(43 × 0.6+5.2 × 0.4) × 0.7=19.516, the target weight of game player 3= (78 × 0.6+3.4 × 0.4) × 0.7=33.712, target weight=(100 × 0.6+5.5 × 0.4) × 1=of game player 3 62.2, target weight=(13 × 0.6+6.6 × 0.4) × 0.3=3.132 of open country strange 1.Target weight is used to indicate each object As the accuracy rate of the corresponding operation object of object run, the smaller indicated accuracy rate of target weight is higher.By existing object The object of middle target weight minimum is determined as the corresponding operation object of object run, then can determine in above-mentioned game player 2, trip It plays in player 3, NPC1 and wild strange 1, open country strange 1 is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, for executing task dispatching special screne in game, task mesh can be separately provided Mark corresponding target weight so that the object specified in task object can be selected immediately.
Optionally, in the present embodiment, after operation object is determined, the target based on threshold restriction can also be passed through The automatic loss lost device and realize operation object.The loss device can introduce thresholding variables, and pass through public affairs on the basis of distance Formula iterates to calculate current target and loses distance, to realize that the intelligence of target is lost.
In an optional embodiment, as shown in figure 3, the operation object determination of object run comprises the following processes: I/O operation (being equivalent to above-mentioned object run) is detected in game frame entrance, judges whether the I/O operation is specific objective UI behaviour Make, if it is, factor data is obtained by the preferential selector of specific objective, then by target autoselector according to because of subnumber According to selection operation object, if the I/O operation is not specific objective UI operations, judge whether it is technical ability UI operations, if It is that Role Dilemma is then passed through if the I/O operation is not technical ability UI operations by target autoselector selection operation object Device executes other operations.After selection operation object, the data of client object and operation object are obtained, and automatic by target Lose whether device loses the operation object according to the Data Detection of client object and operation object.
In this optional embodiment, as shown in figure 4, under current scene, there are three player and one around role itself A monster detects that the object run in client is to discharge the technical ability of common attack, passes through determining for aforesaid operations object There is no the nearest monster of chosen distance or other players for the operation result of journey target autoselector, but have selected blood volume Minimum player.
As it can be seen that through the above steps, during determining object run corresponding operation object, it is contemplated that each may The characteristic attribute of various dimensions of operation object may be to the influence of operating accuracy, with reference to multiple characteristic attributes of each object The accuracy rate that corresponding attribute value determines the corresponding target weight of each object to indicate each object as operation object, and compare More each target weight, the object that target weight is met to goal condition are determined as operation object, to reference to multiple dimensions Characteristic attribute chooses the operation object for the operating effect that can most meet object run, and object run is determined to realize to improve The technique effect of accuracy rate when corresponding operation object, and then accuracy rate when solving determining object run corresponding operation object Relatively low technical problem.
As a kind of optional scheme, the corresponding attribute value packet of multiple characteristic attributes of each object in existing object is obtained It includes:
S1 obtains the corresponding target signature attribute information of object run, wherein remember in allocation list from preset allocation list Record has operation and characteristic attribute information with correspondence, target signature attribute information to be used to indicate multiple characteristic attributes;
S2 obtains the corresponding attribute value of multiple characteristic attributes of each object according to target signature attribute information.
Optionally, in the present embodiment, record has operation and characteristic attribute with correspondence in preset allocation list Information, should operation with correspondence and characteristic attribute information can by some key elements in game modeled come It determines.
As a kind of optional scheme, determined according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes each The corresponding target weight of object includes:
S1 obtains the corresponding target weight function information of target signature attribute information, wherein match from preset allocation list Setting record in table has characteristic attribute information and weighting function information with correspondence, target weight function information to be used to indicate Each characteristic attribute is corresponding in the corresponding weighting function of each characteristic attribute and multiple characteristic attributes in multiple characteristic attributes Weight coefficient;
The corresponding attribute value of each characteristic attribute in the corresponding multiple characteristic attributes of each object is inputted each feature by S2 The corresponding weighting function of attribute obtains the corresponding sub- weight of each characteristic attribute;
S3 obtains the weighted sum of the corresponding sub- weight of each characteristic attribute weight coefficient corresponding with each characteristic attribute, And weighted sum is determined as the corresponding target weight of each object.
Optionally, in the present embodiment, it is also recorded for the characteristic attribute information with correspondence in preset allocation list With weighting function information, target weight function information is used to indicate in multiple characteristic attributes the corresponding weight letter of each characteristic attribute Each corresponding weight coefficient of characteristic attribute in several and multiple characteristic attributes.
Optionally, in the present embodiment, weighting function can be, but not limited to be configured according to the characteristics of characteristic attribute.Example Such as:In the game of above-mentioned MMORPG classes, blood volume, distance, target is oriented the multistage linear change factor, can configure stage by stage The weighting function of linear change.
Optionally, in the present embodiment, the corresponding weight coefficient of each characteristic attribute can be according to each characteristic attribute pair It is configured in the importance of operation object determination process.
As a kind of optional scheme, the object that target weight in existing object is met to goal condition is determined as target behaviour Making corresponding operation object includes:
S1 determines that target weight is most in existing object in the case where the quantity of the operation object of object run is one The first high object is that target weight meets the object of goal condition, and the first object is determined as the corresponding operation of object run Object;And/or
S2 obtains the operation object of object run in the case where the quantity of the operation object of object run is multiple Destination number;Determine that the second object of the higher destination number of target weight is that target weight meets goal condition in existing object Object, and destination number the second object is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, the behaviour that the goal condition that target weight need to meet can be specified according to object run Make the quantity of object to determine.Such as:For the technical ability of single object of attack, the highest object of target weight can be chosen as behaviour Make object, class technical ability is attacked for group, the object for meeting the destination number that group's attack requires can be chosen as operation pair As.
As a kind of optional scheme, it is determined as target in the object that target weight in existing object is met to goal condition After operating corresponding operation object, further include:
S1 obtains the first distance between the first object and operation object of initiating object run, wherein the first distance is used Target weight in existing object is met to when the object of goal condition is determined as object run corresponding operation object the in instruction The distance between an object and operation object;
S2 determines that target loses distance based on the first distance with target range threshold value;
S3, when the first object and operation object move to the second distance between the first object and operation object more than target In the case of losing distance, determine that operation object is lost in object run.
Optionally, in the present embodiment, target range threshold value can be according to the opereating specification of object run, object run The information such as operational attribute are configured.
Optionally, in the present embodiment, according to the distance between the first object and operation object and preset target away from Determine whether to carry out loss processing to operation object from threshold value.Such as:In course of battle in gaming, war of especially running Bucket, it is desirable to reselect new target, first have to lose the target currently chosen, traditional way usually has:Pass through direct point Hit new target and carry out target switching, target switching is carried out using strange button is cut, wait for the target currently chosen leave the visual field or Person is dead, then the nearest target of simple chosen distance carries out the loss mode of the operation objects such as target switching.But these modes It is not smart enough and conveniently, it is easy to cause the mistake of target to lose, in the present embodiment, device is lost by target automatically, introduce Target range thresholding variables, realize and target are chosen intelligently to be lost after reaching certain condition.
As a kind of optional scheme, determine that target loses distance and includes with target range threshold value based on the first distance:
S1 is more than minimum target in the first distance and loses distance, and the first object and side of the operation object to be located remotely from each other In the case of movement, determine target lose distance be the first distance and target range threshold value and;
S2 is more than minimum target in the first distance and loses distance, and the first object and operation object are with side close to each other In the case of movement, determine target lose distance be second distance and target range threshold value and;
S3 determines that target loses distance and is in the case where the first distance is less than or equal to minimum target and loses distance Minimum target loses distance;
Wherein, it is the minimum value that preset target loses distance that minimum target, which loses distance,.
Optionally, in the present embodiment, on the basis of distance, thresholding variables are introduced, and iterate to calculate by formula Current target loses distance, to realize that the intelligence of target is lost.
For example, in an optional embodiment, dtIndicate that current goal loses distance, dl indicates that the last time calculates The target arrived loses distance, and d indicates that the distance between current operation object and player's object, λ indicate to lose distance threshold, D tables Show that minimum target loses distance.
dlIt is initialized by following formula:
dl=d+ λ
After initialization, iteration updates d as follows in game processt
dl=dt
Computation model in this way, it is ensured that player, can be with after arbitrary remote distance chooses visible target The loss target of meeting intelligence in following several scenes:
Scene one, initial distance is more than D, and player and operation object are moved towards far from direction, then dtIt remains initial The value of change, and in the two distance more than dtLose target automatically later.
Scene two, initial distance is more than D, and player and target are moved towards close to direction, then dtIt constantly reduces, if hereafter Player and target are moved towards far from direction, then in the two distance more than dtLose target automatically later.
Scene three, initial distance are less than or equal to D, then dtIt is locked into D, hereafter no matter how player and target move, In the two distance more than dtLose target automatically later.
In this optional embodiment, with D=10, for λ=1, for scene one, if current first object and mesh It is 15 to mark the distance between object, then initial distance is 15+1=16, which has been more than (10) D, and the first object It is moved towards far from direction with operation object, then dt16 are remained, loses target object automatically after the two distance is more than 16.It is right In scene two, if the distance between current first object and target object are 15, initial distance 15+1=16, this is initial Distance has been more than (10) D, and the first object and operation object are moved towards close to direction, then dtConstantly reduce, that is to say, that when The two close to distance be 12 when, d at this timetFor 12+1=13, if hereafter player and target are moved towards far from direction, two Person's distance is automatic later more than 13 to lose target.For scene three, if the distance between current first object and target object It is 9, then initial distance is 9+1=10, which is equal to D (10), then dtBe locked into 10, hereafter no matter the first object and How target object moves, and loses target automatically after the two distance is more than 10.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to the ... of the embodiment of the present invention additionally provides a kind of determination side for implementing aforesaid operations object The determining device of the operation object of method, as shown in figure 5, the device includes:
1) the first acquisition module 52, in the case where detecting object run, obtaining in current display interface Existing object;
2) the second acquisition module 54, the corresponding attribute of multiple characteristic attributes for obtaining each object in existing object Value;
3) the first determining module 56, it is every for being determined according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes The corresponding target weight of a object, wherein target weight is used to indicate each object as the corresponding operation object of object run Accuracy rate;
4) the second determining module 58, the object for target weight in existing object to be met to goal condition are determined as target Operate corresponding operation object.
Optionally, in the present embodiment, the determining device of aforesaid operations object can be applied to terminal as shown in Figure 2 In 202 hardware environment constituted.As shown in Fig. 2, terminal 202 in the case where detecting object run, obtains current display Existing object in interface, and the corresponding attribute value of multiple characteristic attributes of each object in existing object is obtained, according to multiple The corresponding attribute value of each characteristic attribute determines the corresponding target weight of each object in characteristic attribute, wherein target weight is used In indicating accuracy rate of each object as the corresponding operation object of object run, target weight in existing object is met into target The object of condition is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, the determining device of aforesaid operations object can be, but not limited to be applied to determine client On end in the scene of the corresponding operation object of object run.Wherein, above-mentioned client can be, but not limited to answer to be various types of With, for example, online education application, instant messaging application, community space application, game application, shopping application, browser application, Financial application, multimedia application, live streaming application etc..Specifically, can be, but not limited to be applied to determine in above-mentioned game application In the scene of the corresponding operation object of object run, or can with but be not limited to be applied in above-mentioned shopping application determine target In the scene for operating corresponding operation object, accuracy rate when determining object run corresponding operation object to improve.It is above-mentioned to be only A kind of example does not do this any restriction in the present embodiment.
It should be noted that in the present embodiment, above-mentioned client is by taking game client as an example, other kinds of client The mode of upper determining operation object is similar to its, and details are not described herein.
Optionally, in the present embodiment, object run can be, but not limited to include:Release skill operation, trip in game The operation etc. launched a offensive in the operation, game of execution task in play.
Optionally, in the present embodiment, the existing object in current display interface in client of acquisition can root It is different according to the difference of object run, such as:Technical ability for attacking class discharges operation, and the existing object of acquisition may be display Hostile player, NPC, wild monster, BOSS on interface etc..Operation is discharged for the technical ability of gain-type, the existing object of acquisition may It is the friend side player on display interface.For executing the operation of task class, the existing object of acquisition may be on display interface The specified wild monster of task, BOSS, NPC, stage property etc..
Optionally, in the present embodiment, the information such as characteristic attribute, goal condition can be according to the type and mesh of client Mark operation configure.Such as:By taking the game of MMORPG classes as an example, characteristic attribute may include:Blood volume:That is player role Blood volume numerical value (may be used remaining blood volume percentage indicate), distance:Euclidean distance, mesh i.e. between player role and object It marks towards angle:Angle, the relevant factor of PK patterns i.e. between player's direction vector and the vector of player-object:It can wrap Include target type (player, common monster, elite blame, world Boss), hostile relations, red name player etc., object special state:Task Object, current selected object, Current lock object are currently attacking the object of the corresponding object of client.
Optionally, in the present embodiment, target weight can be, but not limited to by arrange in the client based on multiple-factor The target autoselector of weight equation is determined, and client is corresponding in the multiple characteristic attributes for getting each object After attribute value, attribute value is input in the target autoselector based on multiple-factor weight equation, by being based on multiple-factor weight The target autoselector of formula determines the corresponding target weight of each object by the way that attribute value is updated to weight equation, visitor Family end, which is got, to be met the object of goal condition after target weight by target weight in existing object and is determined as object run correspondence Operation object.
Optionally, in the present embodiment, it for the object run under special screne, provides and a kind of is specified based on user The preferential selector of specific objective to obtain special factor variable (i.e. characteristic attribute), and is transferred data to and is weighed based on the factor The target autoselector of weight formula, to choose specific intended target automatically.
Such as:In the game of above-mentioned MMORPG classes, according to scene needs, following several specific factors are created:
Task object type:That is the target type of particular task, applied to doing task scene.
Current lock target:The target that i.e. user specifies manually is applied to more people's scene of fighting.User can pass through target Choose UI, the specified target preferentially attacked.
Attacking the target of the corresponding object of client:Currently the corresponding object of client is being attacked Target.Strange scene is brushed applied to field, selector can preferentially choose my monster of attack or other players, in brush monster In the process, itself is can be well protected not attacked.
In an optional embodiment, by taking player exercises role in game client discharges technical ability as an example, in client In the case of detecting the object run that player 1 carries out release technical ability 1 on end, it is current right in current display interface to obtain As including:Game player 2, game player 3, NPC1 and open country blame 1, and the characteristic attribute under the scene is set as:Blood volume, distance and right As type, the weight coefficient of characteristic attribute be the weight coefficient of blood volume be 0.6, the weight coefficient of distance is 0.4, different object class Type corresponds to different weight coefficients, and the weight coefficient of player type is that the weight coefficient of 0.7, NPC types is 1, common wild strange power Weight coefficient is 0.3, obtains the corresponding attribute value of above-mentioned multiple characteristic attributes of each object in existing object, such as:Game is played 2 blood volumes 43% of family, the distance between player 1 5.2m, object type is player type;3 blood volume 78% of game player, with player The distance between 1 3.4m, object type are player type;NPC1 blood volumes 100%, the distance between player 1 5.5m, object class Type is NPC types;Strange 1 blood volume 13% in open country, the distance between player 1 6.6m, object type are common wild strange type, pass through meter The form for the weight coefficient that the weighted sum of calculation blood volume and distance is multiplied by object type determines the corresponding target weight of each object, example Such as:The target weight of game player 2=(43 × 0.6+5.2 × 0.4) × 0.7=19.516, the target weight of game player 3= (78 × 0.6+3.4 × 0.4) × 0.7=33.712, target weight=(100 × 0.6+5.5 × 0.4) × 1=of game player 3 62.2, target weight=(13 × 0.6+6.6 × 0.4) × 0.3=3.132 of open country strange 1.Target weight is used to indicate each object As the accuracy rate of the corresponding operation object of object run, the smaller indicated accuracy rate of target weight is higher.By existing object The object of middle target weight minimum is determined as the corresponding operation object of object run, then can determine in above-mentioned game player 2, trip It plays in player 3, NPC1 and wild strange 1, open country strange 1 is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, for executing task dispatching special screne in game, task mesh can be separately provided Mark corresponding target weight so that the object specified in task object can be selected immediately.
Optionally, in the present embodiment, after operation object is determined, the target based on threshold restriction can also be passed through The automatic loss lost device and realize operation object.The loss device can introduce thresholding variables, and pass through public affairs on the basis of distance Formula iterates to calculate current target and loses distance, to realize that the intelligence of target is lost.
In an optional embodiment, as shown in figure 3, the operation object determination of object run comprises the following processes: I/O operation (being equivalent to above-mentioned object run) is detected in game frame entrance, judges whether the I/O operation is specific objective UI behaviour Make, if it is, factor data is obtained by the preferential selector of specific objective, then by target autoselector according to because of subnumber According to selection operation object, if the I/O operation is not specific objective UI operations, judge whether it is technical ability UI operations, if It is that Role Dilemma is then passed through if the I/O operation is not technical ability UI operations by target autoselector selection operation object Device executes other operations.After selection operation object, the data of client object and operation object are obtained, and automatic by target Lose whether device loses the operation object according to the Data Detection of client object and operation object.
In this optional embodiment, as shown in figure 4, under current scene, there are three player and one around role itself A monster detects that the object run in client is to discharge the technical ability of common attack, passes through determining for aforesaid operations object There is no the nearest monster of chosen distance or other players for the operation result of journey target autoselector, but have selected blood volume Minimum player.
As it can be seen that by above-mentioned apparatus, during determining object run corresponding operation object, it is contemplated that each may The characteristic attribute of various dimensions of operation object may be to the influence of operating accuracy, with reference to multiple characteristic attributes of each object The accuracy rate that corresponding attribute value determines the corresponding target weight of each object to indicate each object as operation object, and compare More each target weight, the object that target weight is met to goal condition are determined as operation object, to reference to multiple dimensions Characteristic attribute chooses the operation object for the operating effect that can most meet object run, and object run is determined to realize to improve The technique effect of accuracy rate when corresponding operation object, and then accuracy rate when solving determining object run corresponding operation object Relatively low technical problem.
As a kind of optional scheme, the second acquisition module includes:
1) first acquisition unit, for obtaining the corresponding target signature attribute letter of object run from preset allocation list Breath, wherein record has operation and characteristic attribute information with correspondence in allocation list, and target signature attribute information is for referring to Show multiple characteristic attributes;
2) second acquisition unit, for according to target signature attribute information, obtaining multiple characteristic attributes pair of each object The attribute value answered.
Optionally, in the present embodiment, record has operation and characteristic attribute with correspondence in preset allocation list Information, should operation with correspondence and characteristic attribute information can by some key elements in game modeled come It determines.
As a kind of optional scheme, the first determining module includes:
1) third acquiring unit, for obtaining the corresponding target weight of target signature attribute information from preset allocation list Function information, wherein record has characteristic attribute information and weighting function information with correspondence, target weight in allocation list Function information is used to indicate in multiple characteristic attributes in the corresponding weighting function of each characteristic attribute and multiple characteristic attributes often The corresponding weight coefficient of a characteristic attribute;
2) input unit is used for each corresponding attribute value of characteristic attribute in the corresponding multiple characteristic attributes of each object The corresponding weighting function of each characteristic attribute is inputted, the corresponding sub- weight of each characteristic attribute is obtained;
3) first processing units, for obtaining the corresponding sub- weight of each characteristic attribute power corresponding with each characteristic attribute The weighted sum of weight coefficient, and weighted sum is determined as the corresponding target weight of each object.
Optionally, in the present embodiment, it is also recorded for the characteristic attribute information with correspondence in preset allocation list With weighting function information, target weight function information is used to indicate in multiple characteristic attributes the corresponding weight letter of each characteristic attribute Each corresponding weight coefficient of characteristic attribute in several and multiple characteristic attributes.
Optionally, in the present embodiment, weighting function can be, but not limited to be configured according to the characteristics of characteristic attribute.Example Such as:In the game of above-mentioned MMORPG classes, blood volume, distance, target is oriented the multistage linear change factor, can configure stage by stage The weighting function of linear change.
Optionally, in the present embodiment, the corresponding weight coefficient of each characteristic attribute can be according to each characteristic attribute pair It is configured in the importance of operation object determination process.
As a kind of optional scheme, the second determining module includes:
1) second processing unit, in the case where the quantity of the operation object of object run is one, determining current Highest first object of target weight is that target weight meets the object of goal condition, and the first object is determined as mesh in object Mark operates corresponding operation object;And/or
2) third processing unit, in the case where the quantity of the operation object of object run is multiple, obtaining target The destination number of the operation object of operation;Determine that the second object of the higher destination number of target weight is target in existing object Weight meets the object of goal condition, and the second object of destination number is determined as the corresponding operation object of object run.
Optionally, in the present embodiment, the behaviour that the goal condition that target weight need to meet can be specified according to object run Make the quantity of object to determine.Such as:For the technical ability of single object of attack, the highest object of target weight can be chosen as behaviour Make object, class technical ability is attacked for group, the object for meeting the destination number that group's attack requires can be chosen as operation pair As.
As a kind of optional scheme, above-mentioned apparatus further includes:
1) third acquisition module, for obtains initiation object run the first object and operation object between first away from It is used to indicate from, wherein the first distance and target weight in existing object is met to the object of goal condition is determined as object run The distance between first object and operation object when corresponding operation object;
2) third determining module, for determining that target loses distance with target range threshold value based on the first distance;
3) the 4th determining module, for being moved between the first object and operation object when the first object and operation object Second distance is more than to determine that operation object is lost in object run in the case that target loses distance.
Optionally, in the present embodiment, target range threshold value can be according to the opereating specification of object run, object run The information such as operational attribute are configured.
Optionally, in the present embodiment, according to the distance between the first object and operation object and preset target away from Determine whether to carry out loss processing to operation object from threshold value.Such as:In course of battle in gaming, war of especially running Bucket, it is desirable to reselect new target, first have to lose the target currently chosen, traditional way usually has:Pass through direct point Hit new target and carry out target switching, target switching is carried out using strange button is cut, wait for the target currently chosen leave the visual field or Person is dead, then the nearest target of simple chosen distance carries out the loss mode of the operation objects such as target switching.But these modes It is not smart enough and conveniently, it is easy to cause the mistake of target to lose, in the present embodiment, device is lost by target automatically, introduce Target range thresholding variables, realize and target are chosen intelligently to be lost after reaching certain condition.
As a kind of optional scheme, third determining module includes:
1) the first determination unit loses distance, and the first object and operation pair for being more than minimum target in the first distance In the case of with the direction movement that is located remotely from each other, determine target lose distance be the first distance and target range threshold value and;
2) the second determination unit loses distance, and the first object and operation pair for being more than minimum target in the first distance In the case of with direction movement close to each other, determine target lose distance be second distance with target range threshold value and;
3) third determination unit is used in the case where the first distance is less than or equal to minimum target and loses distance, really The loss that sets the goal distance is that minimum target loses distance;
Wherein, it is the minimum value that preset target loses distance that minimum target, which loses distance,.
Optionally, in the present embodiment, on the basis of distance, thresholding variables are introduced, and iterate to calculate by formula Current target loses distance, to realize that the intelligence of target is lost.
For example, in an optional embodiment, dtIndicate that current goal loses distance, dlIndicate that the last time calculates The target arrived loses distance, and d indicates that the distance between current operation object and player's object, λ indicate to lose distance threshold, D tables Show that minimum target loses distance.
dlIt is initialized by following formula:
dl=d+ λ
After initialization, iteration updates d as follows in game processt
dl=dt
Computation model in this way, it is ensured that player, can be with after arbitrary remote distance chooses visible target The loss target of meeting intelligence in following several scenes:
Scene one, initial distance is more than D, and the first object of player and operation object are moved towards far from direction, then dtIt protects The value for initialization is held, and in the two distance more than dtLose target automatically later.
Scene two, initial distance is more than D, and player and target are moved towards close to direction, then dtIt constantly reduces, if hereafter Player and target are moved towards far from direction, then in the two distance more than dtLose target automatically later.
Scene three, initial distance are less than or equal to D, then dtIt is locked into D, hereafter no matter how player and target move, In the two distance more than dtLose target automatically later.
In this optional embodiment, with D=10, for λ=1, for scene one, if current first object and mesh It is 15 to mark the distance between object, then initial distance is 15+1=16, which has been more than (10) D, and the first object It is moved towards far from direction with operation object, then dt16 are remained, loses target object automatically after the two distance is more than 16.It is right In scene two, if the distance between current first object and target object are 15, initial distance 15+1=16, this is initial Distance has been more than (10) D, and the first object and operation object are moved towards close to direction, then dtConstantly reduce, that is to say, that when The two close to distance be 12 when, d at this timetFor 12+1=13, if hereafter player and target are moved towards far from direction, two Person's distance is automatic later more than 13 to lose target.For scene three, if the distance between current first object and target object It is 9, then initial distance is 9+1=10, which is equal to D (10), then dtBe locked into 10, hereafter no matter the first object and How target object moves, and loses target automatically after the two distance is more than 10.
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in above-described embodiment, the present embodiment In this is repeated no more.An embodiment of the present invention provides the optional tools of one kind of the connection method for implementing above-mentioned real-time Communication for Power Body application example.
As a kind of optional embodiment, the determination method of aforesaid operations object can be, but not limited to be applied to such as Fig. 6 institutes In the scene of the determination for the operation object shown.The noun in some game in this scene is explained and illustrated below:
MMORPG:Massively Multiplayer Online Role Playing Games.
Occupation:The character types that player selects in game.
PK patterns:Combat model in game determines in game friendly or hostile relations between different crowd.
NPC:Non-player role in game is primarily referred to as some functional permanent roles, such as picks up task isogonism Color object.
Red name player:Other players of malice kill can obtain murderous look value in game, and murderous look value accumulative 200 or more can become red Name has greater probability to lose knapsack article when by NPC attacks and death.
In this scene, a kind of Intelligent target auxiliary system of MMORPG hands trip is provided.One pain spot of going game It is that on a mobile platform, because the particularity of mobile platform, including visual screen are small, I/O operation limitation etc. causes in game process Choosing and losing for player for target is an operation for being not easy to reach correct result, eventually leads to game experiencing extremely not It is good.For this pain spot, in this scene, the characteristic of MMORPG game and mobile platform operation is considered, it is proposed that a set of Selection and the intelligent assistance system for losing operation object ensure that intelligent, side of the player when selecting and losing operation object Just property and correctness, greatly improve user experience.The system includes mainly following several parts:
1) the target autoselector based on multiple-factor weight equation.
According to type of play and scene of game, modeling certainty factor variable is carried out (quite to some key elements in game In features described above attribute), establish the corresponding weight coefficient of weighting function, certainty factor.When player discharges technical ability, system Target autoselector can be input the data into, and automatically selects out operation object.
The selection device introduces the significant variables such as the factor, weight, calculates target weight by following formula, selector can be certainly It is dynamic to choose the highest object of weight as operation object, to realize that the intelligence of target is chosen.
ωi=f (x)
Wherein, ω is the corresponding target weight of each object, ωiFor the sub- weight of a certain item factor, σiFor a certain item factor Weight coefficient, x be a certain item factor discrete values, f (x) be the corresponding weighting function of the factor.
Optionally, in the present embodiment, each single item factor can be isolated using weight coefficient and carries out independent weight calculation (i.e. more aspect take out weighting function f (x)), and by each single item Factor Weight ω in formulaiIt is normalized, then passes through σi The weight shared by each single item factor is adjusted to determine the significance level of the factor.Weight coefficient design in this way, is more convenient Project staff and developer carry out the numerical value and function of debugging system.
In MMORPG game, a set of factor variable closely related with the occupation of player role is devised, for each Occupation can all configure a independent Factor Weight coefficient table, to record the data such as above-mentioned weighting function, the factor, weight coefficient. Specific factor variable is as follows:
Blood volume:That is remaining blood volume percentage may be used to indicate in the blood volume numerical value of player role in gaming.
Distance:Euclidean distance i.e. between player role and object.
Target is towards angle:Angle i.e. between player's direction vector and player-object vectors.
The relevant factor of PK patterns:Object type (player, common strange, elite blames, world Boss), hostile relations, red name Player.
Target special state:Task object, current selected object, Current lock object are currently attacking player role Object.
Wherein blood volume, distance, target are oriented the multistage linear change factor, the power of linear change stage by stage may be used Weight function model designs weighting function.Such as:The right assessment function of blood volume is as follows:
Wherein f (x) is weighting function, kiFor the slope of linear change, xi0For factor initial value, f (xi0) it is that the factor originates Weight, xi1For factor end value, f (xi1) it is that the factor terminates weight, x is factor value.
2) the preferential selector of specific objective specified based on user.
In some special scene of game, for example task scene is done, more people's scene of fighting etc., the above-mentioned factor can not expire The selection demand (such as task object, hostile target etc.) of sufficient specific objective.At this point it is possible to according to scene needs, pass through specific mesh Preferential selector is marked, specific factor is set, finally automatically selects out specific objective again by target autoselector.
The selection device transfers data to the mesh based on Factor Weight formula by introducing some special factor variables Autoselector is marked, to choose the operation object of specific intention automatically.
In MMORPG game, according to scene needs, following several specific factors are created:
Task object type:That is the object type of particular task can be applied to do task scene.
Current lock target:The operation object specified manually, can be applied to more people's scene of fighting.As shown in fig. 6, logical Cross the specified objects preferentially attacked of Object selection UI.
Attacking the target of player role:The i.e. current target that player role is being attacked.Applied to field The strange scene of brush, selector can preferentially choose monster or other players of attack player role, thus during brushing strange, energy It protects and itself is not attacked well.
3) target based on threshold restriction loses device automatically.
In game process, how intelligence loses the target currently chosen, and is that target switches and how to choose the weight of target Want premise.In course of battle, it is desirable to intelligence switching target, it is necessary to first lose and currently choose target, because currently choosing mesh Itself is a the important factors for occupying very big weight for mark.For another example long-range occupational role, which is wanted to attack when running, chooses target, If only losing target by distance, it is easy to the mistake of target be caused to lose.For another example traditional hand trip, to player and NPC Carry out information inspection is chosen, is all to be limited in a narrow range, causes player to be not easy to check others' information, why can It limits range to choose, also because choosing the loss problem of target.Above-mentioned target loses device automatically, introduces threshold value change Amount, meets and target is chosen intelligently to be lost after reaching certain condition.On this basis, it may be convenient to realize seen in target i.e. The good user experience that can be chosen.
The loss device introduces thresholding variables, and iterate to calculate current target by formula and lose on the basis of distance Distance is lost, to realize that the intelligence of target is lost.
In the present embodiment, d is settIndicate that current goal loses distance, dlIndicate that the last target being calculated is lost Distance, d indicate that the distance between current goal and player, λ indicate to lose distance threshold, and D indicates that minimum target loses distance.
dlIt is initialized by following formula:
dl=d+ λ
After initialization, iteration updates d as follows in game processt
dl=dt
Computation model in this way, it is ensured that player is after arbitrary remote distance chooses visible object, such as Under several behaviors after can intelligence loss target:
1) initial distance is more than D, and player and target are moved towards far from direction, then dtThe value of initialization is remained, and In the two distance more than dtLose target automatically later.
2) initial distance is more than D, and player and target are moved towards close to direction, then dtIt constantly reduces, if hereafter player It is moved towards far from direction with target, then in the two distance more than dtLose target automatically later.
3) initial distance is less than or equal to D, then dtIt is locked into D, hereafter no matter how player and target move, in the two Distance is more than dtLose target automatically later.
In MMORPG game, by taking soldier's occupation as an example, the data used is D=12, λ=5.As shown in fig. 7, choosing behaviour When making object, the distance of player role and operation object is 7.7 meters, as shown in figure 8, the two distance is lost automatically when more than 12 meters Lose target.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of for implementing the determination of aforesaid operations object Electronic device, as shown in figure 9, the electronic device includes:One or more (one is only shown in figure) processors 902, memory 904, sensor 906, encoder 908 and transmitting device 910 are stored with computer program in the memory, the processor quilt It is set as executing the step in any of the above-described embodiment of the method by computer program.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 obtains the existing object in current display interface in the case where detecting object run;
S2 obtains the corresponding attribute value of multiple characteristic attributes of each object in existing object;
S3 determines that the corresponding target of each object is weighed according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes Weight, wherein target weight is used to indicate accuracy rate of each object as the corresponding operation object of object run;
S4, the object that target weight in existing object is met to goal condition are determined as the corresponding operation pair of object run As.
Optionally, it will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, electronic device also may be used To be smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Fig. 9 it does not cause the structure of above-mentioned electronic device It limits.For example, electronic device may also include more than shown in Fig. 9 or less component (such as network interface, display device Deng), or with the configuration different from shown in Fig. 9.
Wherein, memory 902 can be used for storing software program and module, such as the operation object in the embodiment of the present invention Determine that the corresponding program instruction/module of method and apparatus, processor 904 are stored in the software journey in memory 902 by operation Sequence and module realize the control method of above-mentioned target element to perform various functions application and data processing.It deposits Reservoir 902 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 902 can further comprise relative to place The remotely located memory of device 904 is managed, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network Include but be not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 910 is used to receive via a network or transmission data.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 910 includes a network adapter (NetworkInterface Controller, NIC), can be connected with other network equipments with router by cable to It can be communicated with internet or LAN.In an example, transmitting device 910 is radio frequency (Radio Frequency, RF) Module is used to wirelessly be communicated with internet.
Wherein, specifically, memory 902 is for storing application program.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 obtains the existing object in current display interface in the case where detecting object run;
S2 obtains the corresponding attribute value of multiple characteristic attributes of each object in existing object;
S3 determines that the corresponding target of each object is weighed according to the corresponding attribute value of each characteristic attribute in multiple characteristic attributes Weight, wherein target weight is used to indicate accuracy rate of each object as the corresponding operation object of object run;
S4, the object that target weight in existing object is met to goal condition are determined as the corresponding operation pair of object run As.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, one of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of step be that can be completed come command terminal device-dependent hardware by program, which can be stored in In one computer readable storage medium, storage medium may include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of determination method of operation object, which is characterized in that including:
In the case where detecting object run, the existing object in current display interface is obtained;
Obtain the corresponding attribute value of multiple characteristic attributes of each object in the existing object;
The corresponding target weight of each object is determined according to the corresponding attribute value of the multiple characteristic attribute, wherein The target weight is used to indicate accuracy rate of each object as the corresponding operation object of the object run;
The object that target weight described in the existing object is met to goal condition is determined as the corresponding behaviour of the object run Make object.
2. according to the method described in claim 1, it is characterized in that, obtaining multiple features of each object in the existing object The corresponding attribute value of attribute includes:
The corresponding target signature attribute information of the object run is obtained from preset allocation list, wherein in the allocation list Record has operation and characteristic attribute information with correspondence, the target signature attribute information to be used to indicate the multiple spy Levy attribute;
According to the target signature attribute information, the corresponding attribute of the multiple characteristic attribute of each object is obtained Value.
3. according to the method described in claim 2, it is characterized in that, being determined according to the corresponding attribute value of the multiple characteristic attribute The corresponding target weight of each object includes:
The corresponding target weight function information of the target signature attribute information is obtained from the preset allocation list, wherein Record has characteristic attribute information and weighting function information with correspondence, the target weight function letter in the allocation list Breath is used to indicate in the multiple characteristic attribute in the corresponding weighting function of each characteristic attribute and the multiple characteristic attribute The corresponding weight coefficient of each characteristic attribute;
The corresponding attribute value input of each characteristic attribute in the corresponding the multiple characteristic attribute of each object is described every The corresponding weighting function of a characteristic attribute, obtains the corresponding sub- weight of each characteristic attribute;
Obtain the corresponding sub- weight of each characteristic attribute weight coefficient corresponding with each characteristic attribute Weighted sum, and the weighted sum is determined as the corresponding target weight of each object.
4. according to the method described in claim 3, it is characterized in that, by described in the satisfaction of target weight described in the existing object The object of goal condition is determined as the corresponding operation object of the object run:
In the case where the quantity of the operation object of the object run is one, mesh described in the existing object is determined Mark highest first object of weight is the object that the target weight meets the goal condition;
First object is determined as the corresponding operation object of the object run.
5. according to the method described in claim 3, it is characterized in that, by described in the satisfaction of target weight described in the existing object The object of goal condition is determined as the corresponding operation object of the object run:
In the case where the quantity of the operation object of the object run is multiple, the operation pair of the object run is obtained The destination number of elephant;
Determine that the second object of the higher destination number of target weight described in the existing object is the target weight Meet the object of the goal condition;
The second object of the destination number is determined as the corresponding operation object of the object run.
6. according to the method described in claim 1, it is characterized in that, target weight described in the existing object is met mesh The object of mark condition is determined as after the corresponding operation object of the object run, and the method further includes:
Obtain the first distance between the first object and the operation object of initiating the object run, wherein described first Distance, which is used to indicate, to be met the object of goal condition by target weight described in the existing object and is determined as the object run The distance between first object and the operation object described in when corresponding operation object;
Determine that target loses distance with target range threshold value based on first distance;
When first object and the operation object move between first object and the operation object second away from In the case of with a distance from being lost more than the target, determine that the operation object is lost in the object run.
7. according to the method described in claim 6, it is characterized in that, true based on first distance and the target range threshold value The fixed target loses distance:
It is described first distance be more than minimum target lose distance, and first object with the operation object to be located remotely from each other Direction movement in the case of, determine the target lose distance be first distance with the target range threshold value and;
It is described first distance be more than the minimum target lose distance, and first object with the operation object with mutual In the case of close direction movement, it is the second distance and the target range threshold value to determine that the target loses distance With;
In the case where first distance is less than or equal to the minimum target and loses distance, determine the target lose away from With a distance from being lost for the minimum target;
Wherein, it is the minimum value that the preset target loses distance that the minimum target, which loses distance,.
8. a kind of determining device of operation object, which is characterized in that including:
First acquisition module, it is current right in current display interface in the case where detecting object run, obtaining As;
Second acquisition module, the corresponding attribute value of multiple characteristic attributes for obtaining each object in the existing object;
First determining module, for determining institute according to the corresponding attribute value of each characteristic attribute in the multiple characteristic attribute State the corresponding target weight of each object, wherein the target weight is used to indicate each object and is grasped as the target Make the accuracy rate of corresponding operation object;
Second determining module, the object for target weight described in the existing object to be met to goal condition are determined as described The corresponding operation object of object run.
9. device according to claim 8, which is characterized in that second acquisition module includes:
First acquisition unit, for obtaining the corresponding target signature attribute information of the object run from preset allocation list, Wherein, record has operation and characteristic attribute information with correspondence, the target signature attribute information in the allocation list It is used to indicate the multiple characteristic attribute;
Second acquisition unit, for obtaining the multiple of each object according to the instruction of the target signature attribute information The corresponding attribute value of characteristic attribute.
10. device according to claim 9, which is characterized in that first determining module includes:
Third acquiring unit, for obtaining the corresponding target power of the target signature attribute information from the preset allocation list Weight function information, wherein record has characteristic attribute information and weighting function information with correspondence, institute in the allocation list It states target weight function information and is used to indicate in the multiple characteristic attribute the corresponding weighting function of each characteristic attribute and institute State the corresponding weight coefficient of each characteristic attribute in multiple characteristic attributes;
Input unit, for will each corresponding attribute of characteristic attribute in the corresponding the multiple characteristic attribute of each object Value inputs the corresponding weighting function of each characteristic attribute, obtains the corresponding sub- weight of each characteristic attribute;
First processing units, for obtaining the corresponding sub- weight of each characteristic attribute and each characteristic attribute pair The weighted sum for the weight coefficient answered, and the weighted sum is determined as the corresponding target weight of each object.
11. device according to claim 10, which is characterized in that second determining module includes:
Second processing unit, in the case where the quantity of the operation object of the object run is one, determining institute It is the object that the target weight meets the goal condition to state highest first object of target weight described in existing object, and First object is determined as the corresponding operation object of the object run;And/or
Third processing unit, in the case where the quantity of the operation object of the object run is multiple, obtaining institute State the destination number of the operation object of object run;Determine the higher number of targets of target weight described in the existing object The second object of amount is the object that the target weight meets the goal condition, and the second object of the destination number is true It is set to the corresponding operation object of the object run.
12. device according to claim 8, which is characterized in that described device further includes:
Third acquisition module, for obtain between the first object and the operation object of initiating the object run first away from Be used to indicate from, wherein first distance target weight described in the existing object is met goal condition object it is true The distance between first object and the operation object described in when being set to the corresponding operation object of the object run;
Third determining module, for determining that target loses distance with target range threshold value based on first distance;
4th determining module moves to first object and the operation for working as first object with the operation object Second distance between object is more than to determine that the operation pair is lost in the object run in the case that the target loses distance As.
13. device according to claim 12, which is characterized in that the third determining module includes:
First determination unit, for it is described first distance be more than minimum target lose distance, and first object with it is described In the case that operation object is with the direction movement that is located remotely from each other, determine the target lose distance be first distance with it is described The sum of target range threshold value;
Second determination unit, for it is described first distance be more than the minimum target lose distance, and first object with In the case that the operation object is with direction movement close to each other, determine the target lose distance be the second distance with The sum of the target range threshold value;
Third determination unit is used in the case where first distance is less than or equal to the minimum target and loses distance, It is that the minimum target loses distance to determine that the target loses distance;
Wherein, it is the minimum value that the preset target loses distance that the minimum target, which loses distance,.
14. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute the method described in any one of claim 1 to 7 when operation.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute the side described in any one of claim 1 to 7 by the computer program Method.
CN201810236887.2A 2018-03-21 2018-03-21 Method and device for determining operation object, storage medium and electronic device Active CN108619717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810236887.2A CN108619717B (en) 2018-03-21 2018-03-21 Method and device for determining operation object, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810236887.2A CN108619717B (en) 2018-03-21 2018-03-21 Method and device for determining operation object, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108619717A true CN108619717A (en) 2018-10-09
CN108619717B CN108619717B (en) 2020-06-16

Family

ID=63696174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810236887.2A Active CN108619717B (en) 2018-03-21 2018-03-21 Method and device for determining operation object, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108619717B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111151007A (en) * 2019-12-27 2020-05-15 上海米哈游天命科技有限公司 Object selection method, device, terminal and storage medium
CN111399743A (en) * 2020-03-18 2020-07-10 网易(杭州)网络有限公司 Display control method and device in game
CN111569433A (en) * 2020-05-11 2020-08-25 上海米哈游天命科技有限公司 Game cheating detection method, device, equipment and storage medium
CN113599829A (en) * 2021-08-06 2021-11-05 腾讯科技(深圳)有限公司 Virtual object selection method, device, terminal and storage medium
CN113694526A (en) * 2021-09-18 2021-11-26 腾讯科技(深圳)有限公司 Method, system, device, apparatus, medium, and program for controlling virtual object

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140144813A (en) * 2013-06-11 2014-12-22 (주)위메이드엔터테인먼트 Method and apparatus for tageting automatically at objects appeared in an on-line game
CN105117579A (en) * 2015-07-21 2015-12-02 网易(杭州)网络有限公司 Object selection method and apparatus
CN105582674A (en) * 2015-12-25 2016-05-18 网易(杭州)网络有限公司 Game target selecting method and device
CN107291317A (en) * 2016-03-31 2017-10-24 腾讯科技(深圳)有限公司 The system of selection of target and device in a kind of virtual scene
CN107341139A (en) * 2017-06-30 2017-11-10 北京金山安全软件有限公司 Multimedia processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140144813A (en) * 2013-06-11 2014-12-22 (주)위메이드엔터테인먼트 Method and apparatus for tageting automatically at objects appeared in an on-line game
CN105117579A (en) * 2015-07-21 2015-12-02 网易(杭州)网络有限公司 Object selection method and apparatus
CN105582674A (en) * 2015-12-25 2016-05-18 网易(杭州)网络有限公司 Game target selecting method and device
CN107291317A (en) * 2016-03-31 2017-10-24 腾讯科技(深圳)有限公司 The system of selection of target and device in a kind of virtual scene
CN107341139A (en) * 2017-06-30 2017-11-10 北京金山安全软件有限公司 Multimedia processing method and device, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111151007A (en) * 2019-12-27 2020-05-15 上海米哈游天命科技有限公司 Object selection method, device, terminal and storage medium
CN111151007B (en) * 2019-12-27 2023-09-08 上海米哈游天命科技有限公司 Object selection method, device, terminal and storage medium
CN111399743A (en) * 2020-03-18 2020-07-10 网易(杭州)网络有限公司 Display control method and device in game
CN111569433A (en) * 2020-05-11 2020-08-25 上海米哈游天命科技有限公司 Game cheating detection method, device, equipment and storage medium
CN111569433B (en) * 2020-05-11 2023-09-12 上海米哈游天命科技有限公司 Game cheating detection method, device, equipment and storage medium
CN113599829A (en) * 2021-08-06 2021-11-05 腾讯科技(深圳)有限公司 Virtual object selection method, device, terminal and storage medium
CN113599829B (en) * 2021-08-06 2023-08-22 腾讯科技(深圳)有限公司 Virtual object selection method, device, terminal and storage medium
CN113694526A (en) * 2021-09-18 2021-11-26 腾讯科技(深圳)有限公司 Method, system, device, apparatus, medium, and program for controlling virtual object
CN113694526B (en) * 2021-09-18 2023-06-09 腾讯科技(深圳)有限公司 Virtual object control method, system, device, equipment, medium and program

Also Published As

Publication number Publication date
CN108619717B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN108619717A (en) Determination method, apparatus, storage medium and the electronic device of operation object
CN109499068B (en) Object control method and device, storage medium and electronic device
CN106390456B (en) The generation method and device of role-act in game
CN107970608B (en) Setting method and device of level game, storage medium and electronic device
CN103838982B (en) Virtual game object generating method and device
CN108671546A (en) Determination method and apparatus, storage medium and the electronic device of object run
CN108211358A (en) The display methods and device of information, storage medium, electronic device
CN109999496A (en) Control method, device and the electronic device of virtual objects
CN105935494A (en) Computer system, game device and method for controlling display of game images
CN110475594A (en) Computer system and game system
CN109960545B (en) Virtual object control method, system, device, medium and electronic equipment
CN108211361B (en) The determination method and apparatus of virtual resource acquisition probability, storage medium, electronic device in game
Justesen et al. Playing multiaction adversarial games: Online evolutionary planning versus tree search
CN107648853A (en) Display target object method, device and storage medium in interface
WO2019085823A1 (en) Method, device, and storage medium for determining game information, and electronic device.
Robles et al. A simple tree search method for playing Ms. Pac-Man
CN110152304A (en) Determination method and device, storage medium and the electronic device of triumph value
CN107357563B (en) object moving method and device and storage medium, electronic device
CN107291317A (en) The system of selection of target and device in a kind of virtual scene
CN109731330A (en) The display methods and device of picture, storage medium, electronic device
CN110124315A (en) Control method, device and the storage medium of virtual objects
Huang et al. A self-play policy optimization approach to battling pokémon
CN108310774B (en) Method and device for transmitting operation result, storage medium and electronic device
CN109529358B (en) Feature integration method and device and electronic device
CN112138379B (en) Interaction method and device among different application modes 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