[go: up one dir, main page]

CN107803030A - The method for refreshing and device at resource strong point on virtual map - Google Patents

The method for refreshing and device at resource strong point on virtual map Download PDF

Info

Publication number
CN107803030A
CN107803030A CN201711233543.8A CN201711233543A CN107803030A CN 107803030 A CN107803030 A CN 107803030A CN 201711233543 A CN201711233543 A CN 201711233543A CN 107803030 A CN107803030 A CN 107803030A
Authority
CN
China
Prior art keywords
strong point
grade
map block
resource
map
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
CN201711233543.8A
Other languages
Chinese (zh)
Other versions
CN107803030B (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 Chengdu Co Ltd
Original Assignee
Tencent Technology Chengdu 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 Chengdu Co Ltd filed Critical Tencent Technology Chengdu Co Ltd
Priority to CN201711233543.8A priority Critical patent/CN107803030B/en
Publication of CN107803030A publication Critical patent/CN107803030A/en
Priority to PCT/CN2018/117769 priority patent/WO2019105352A1/en
Application granted granted Critical
Publication of CN107803030B publication Critical patent/CN107803030B/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/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5378Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for displaying an additional top view, e.g. radar screens or maps
    • 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
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of method for refreshing and device for resource strong point on virtual map, belong to computer realm.Methods described includes:The attribute data of the architectural object in map block is obtained, the map block corresponds to one piece of region in virtual map, and attribute data is used for the distribution situation for indicating that architectural object is current in map block;According to the attribute data of architectural object, the refresh data at the resource strong point in map block is determined, refresh data is for indicating the distribution situation after resource strong point is refreshed in map block;The resource strong point in map block is refreshed according to refresh data.The application passes through based on the current distribution situation of architectural object in map block, determine to need the distribution situation at resource strong point refreshed in the map block, resource strong point is enabled to improve the refreshing efficiency at resource strong point using the current distribution situation of architectural object as foundation adaptive intra update.

Description

The method for refreshing and device at resource strong point on virtual map
Technical field
The invention relates to computer realm, more particularly to a kind of refreshing side for resource strong point on virtual map Method and device.
Background technology
Simulation strategy game (Simulation Game, SLG) is that one kind provides several resource evidences on virtual map Point, the game that virtual resource is upgraded and developed come the architectural object created to itself is gathered on resource strong point for player.
In correlation technique, the method for refreshing at resource strong point is usually on virtual map:Every prescribed time period is with pre- If mode refreshes to each resource strong point on virtual map, predetermined manner is used to indicate that each resource strong point is uniformly distributed In virtual map so that player is by sending the virtual game role in architectural object to gather virtual money on resource strong point Source.
But in the above-mentioned methods, because each resource strong point on virtual map is equally distributed, most probably occur Multiple resource strong points are nearby and in the absence of the situation of architectural object so that the quantity at resource strong point is far longer than the number of architectural object Amount, causes the refreshing at resource strong point less efficient.
The content of the invention
The embodiment of the present application provides a kind of method for refreshing and device for resource strong point on virtual map, can solve The problem of refreshing at resource strong point is less efficient in correlation technique.The technical scheme is as follows:
First aspect, there is provided a kind of method for refreshing for resource strong point on virtual map, methods described include:
The attribute data of the architectural object in map block is obtained, the map block corresponds to one piece of area in the virtual map Domain, the attribute data are used for the distribution situation for indicating that architectural object is current described in the map block;
According to the attribute data of the architectural object, the refresh data at the resource strong point in the map block is determined, The refresh data is used to indicate the distribution situation after the refreshing of resource strong point described in the map block;
The resource strong point in the map block is refreshed according to the refresh data.
Second aspect, there is provided a kind of refreshing apparatus for resource strong point on virtual map, described device include:
Acquisition module, for obtaining the attribute data of the architectural object in map block, the map block corresponds to described virtual One piece of region in map, the attribute data are used for the distribution situation for indicating that architectural object is current described in the map block;
Determining module, for the attribute data according to the architectural object, determine the resource evidence in the map block The refresh data of point, the refresh data are used to indicate the distribution situation after the refreshing of resource strong point described in the map block;
Refresh module, for being refreshed according to the refresh data to the resource strong point in the map block.
The third aspect, there is provided a kind of terminal device, the terminal device include processor and memory, the memory In be stored with least one instruction, at least one instruction is loaded by the processor and performed to realize that first aspect is carried What is supplied is used for the method for refreshing at resource strong point on virtual map.
Fourth aspect, there is provided a kind of computer-readable recording medium, be stored with least one finger in the storage medium Order, at least one instruction are loaded by the processor and performed to realize that what first aspect provided is used for virtual map The method for refreshing at resource strong point.
The beneficial effect brought of technical scheme that the embodiment of the present application provides is:
By obtaining the attribute data of the architectural object in map block, attribute data is used to indicate architectural object in map block Current distribution situation, the refresh data at the resource strong point in map block is determined according to the attribute data of architectural object, refresh number According to for indicating the distribution situation after resource strong point is refreshed in map block, the resource strong point in map block is entered according to refresh data Row refreshes;Terminal device is enabled to adaptively determine the map based on the current distribution situation of architectural object in map block The distribution situation at resource strong point refreshed is needed in block, resource strong point in correlation technique is avoided and is evenly distributed on virtual map Cause the less efficient situation of the refreshing at resource strong point, and then enable resource strong point with the current distribution situation of architectural object According to adaptive intra update, to greatly reduce the refreshing at invalid resource strong point, improving the refreshing efficiency at resource strong point.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic diagram of the virtual map provided in correlation technique;
Fig. 2 is the schematic diagram for the virtual map that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart for being used for the method for refreshing at resource strong point on virtual map that the application one embodiment provides;
Fig. 4 is the flow for being used for the method for refreshing at resource strong point on virtual map of the application another embodiment offer Figure;
Fig. 5 is the corresponding pass between the building total quantity and target strong point total quantity that the application another embodiment is related to The schematic diagram of system;
Fig. 6 is the flow for being used for the method for refreshing at resource strong point on virtual map of the application another embodiment offer Figure;
Fig. 7 is the schematic diagram of the attribute data for the architectural object that the application another embodiment is related to;
Fig. 8 is the corresponding pass between the class of construction scope that the application another embodiment is related to and strong point rate range The schematic diagram of system;
Fig. 9 is the flow for being used for the method for refreshing at resource strong point on virtual map of the application another embodiment offer Figure;
Figure 10 is strong point grade, default weight and this three of the second preset ratio that the application another embodiment is related to Between corresponding relation schematic diagram;
Figure 11 A are that the principle for being used for the method for refreshing at resource strong point on virtual map that the application one embodiment provides is shown It is intended to;
Figure 11 B are that the interface for being used for the method for refreshing at resource strong point on virtual map that the application one embodiment provides shows It is intended to;
Figure 12 is that the structure for being used for the refreshing apparatus at resource strong point on virtual map that the application one embodiment provides is shown It is intended to;
Figure 13 is the structure for being used for the refreshing apparatus at resource strong point on virtual map of the application another embodiment offer Schematic diagram;
Figure 14 is the structural representation for the terminal that the application one embodiment provides;
Figure 15 is the structural representation for the server that the application one embodiment provides.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with accompanying drawing to the application embodiment party Formula is described in further detail.
In order to facilitate understanding, the noun occurred in the embodiment of the present invention is explained below.
Map block:One piece of region in corresponding virtual map.Map block includes at least one architectural object and/or at least One resource strong point.One virtual map can be divided at least two map blocks.The shapes and sizes of each map block can be with It is identical, can also be different.
Wherein, virtual map can be two-dimensional virtual map or 2.5D virtual maps, can also be three-dimensional Map.The embodiment of the present application is not limited to this.
Architectural object is for manufacturing, being stationed and/or the point map of training virtual game role.For example architectural object is City.
The attribute data of architectural object:For indicating architectural object is current in map block distribution situation.Wherein, building pair The attribute data of elephant includes building total quantity current in the map block.Optionally, attribute data also include the map block in when Preceding class of construction scope.Wherein, class of construction scope includes the n different classes of construction, and n is positive integer.Optionally, attribute Data also include:Each self-corresponding asd number of the n class of construction in the map block.
Resource strong point is the point map for providing virtual resource.For example resource strong point can be virtual farmland, virtual iron The point maps such as ore deposit, virtual wooden ore deposit.
The refresh data at resource strong point:For indicating the distribution situation after resource strong point is refreshed in map block.
Wherein, the refresh data at resource strong point includes the target strong point total quantity in the map block.Optionally, refresh data Also include the strong point rate range in the map block.Wherein, strong point rate range includes m different strong point grades, and m is just whole Number.Optionally, refresh data also includes:Each self-corresponding strong point quantity of m strong point grade in the map block.
It should be noted that above-mentioned target strong point total quantity, strong point rate range and each self-corresponding evidence of m strong point grade Point quantity is the data after the refreshing of resource strong point in the map block, such as, target strong point total quantity does not refer to provide in map block The total quantity at the current resource strong point in source strong point, and refer to the sum at the resource strong point of resource strong point after refreshing in map block Amount.
In correlation technique, as shown in figure 1, virtually Figure 10 includes at least one architectural object 14 and multiple resource strong points 16.Multiple resource strong points 16 are evenly distributed on this virtually on Figure 10, i.e., any two resource strong point in multiple resource strong points 16 The distance between 16 be identical.Computer every prescribed time period is with predetermined manner to virtually each resource evidence on Figure 10 Point 16 is refreshed, and predetermined manner is used to indicate that each resource strong point 16 is evenly distributed in virtually Figure 10 so that Wan Jiatong Cross and send the virtual game role in architectural object 14 to gather virtual resource on resource strong point 16.
But if this virtually only includes 2 architectural objects 14 in Figure 10, actually only need the resource of 2 or so Strong point 16 can meet the needs of player gathers virtual resource, and be used for virtually resource strong point 16 on Figure 10 in correlation technique Method for refreshing does not have the distribution situation for considering architectural object 14, and virtually being still had on Figure 10 after refreshing is equally distributed Multiple resource strong points 16 so that the quantity at resource strong point is far longer than the quantity of architectural object, i.e. part resource strong point 16 is nothing Resource strong point is imitated, the setting at partial invalidity resource strong point and constantly refreshing waste the computing resource of terminal device, caused significantly The refreshing at resource strong point is less efficient.
Therefore, in the embodiment of the present application, by based on the current distribution situation of architectural object in map block, adaptively Determine to need the distribution situation at resource strong point refreshed in the map block, avoid resource strong point in correlation technique and be evenly distributed on Cause the less efficient situation of the refreshing at resource strong point on virtual map so that resource strong point can be with current point of architectural object Cloth situation is according to adaptive intra update, greatly reduces the refreshing at invalid resource strong point, improves the refreshing effect at resource strong point Rate.Illustrated below using schematical embodiment.
Fig. 2 is refer to, the virtually Figure 20 provided it illustrates the embodiment of the present application schematic diagram.
Virtually Figure 20 is divided into K map block 22, and K is positive integer or for the positive integer more than 1.K map block Size in 22 in the presence of at least two map blocks 22 is identical, or, the size of any two map block 22 is different, or The size of person's any two map block 22 is identical.
The map block 22 that at least one map block 22 in K map block 22 be present is shaped as preset shape, the preset shape Including at least one of rectangle, triangle, circle and ellipse.The present embodiment is not limited to this.Below only with K ground Segment 22 be K rectangle map block 22 of size identical exemplified by illustrate.
Optionally, virtually Figure 20 is divided according to preliminary dimension, obtains K map block 22.Wherein, each map Block 22 is preliminary dimension, and preliminary dimension includes predetermined length and preset width.Such as the rectangle that each map block 22 is 20*20 Region.
The strong point quantity that the resource strong point 26 at least two map blocks 22 in K map block 22 be present is different, and/ Or, the strong point rate range existed in K map block 22 at least two map blocks 22 is different.
Map block 22 in the embodiment of the present application is any one piece of map block in this K map block 22.In map block 22 Including at least one architectural object 24 and/or at least one resource strong point 26.
It should be noted that in order to distinguish architectural object 24 and resource strong point 26 in Fig. 2, only with triangular shaped schematic Ground represents architectural object 24, schematically shows resource strong point 26 with round-shaped, the embodiment of the present application is to the He of architectural object 24 The true form at resource strong point 26 is not limited.
Fig. 3 is refer to, it illustrates the refreshing for being used for resource strong point on virtual map that the application one embodiment provides The flow chart of method, the present embodiment are used to exemplified by virtually Figure 20 as shown in Figure 2 illustrate in this way, this method bag Include:
Step 301, the attribute data of the architectural object in map block is obtained, map block corresponds to one piece of area in virtual map Domain, attribute data are used for the distribution situation for indicating that architectural object is current in map block.
Terminal device determines map block to be refreshed from virtual map, obtains the attribute number of the architectural object in map block According to.
Terminal device is divided virtual map according to preliminary dimension to obtain K map block, and is counted and obtained map block Total quantity is K, determines that map block to be refreshed includes but is not limited to following two possible modes from virtual map:
The first possible determination mode:Terminal device randomly selects one of map block from K map block, by this Map block is defined as map block to be refreshed;
Second of possible determination mode:K map block is numbered terminal device, according to numbering from small to large sequentially One of map block is defined as to map block to be refreshed, i.e., sequentially refreshed.Determination mode of the present embodiment to map block is not It is limited.
Optionally, terminal device obtains the attribute data of the architectural object in map block every predetermined refresh time interval. Wherein, predetermined refresh time interval is the numerical value for being used for circulation and refreshing pre-set.
For example refresh interval is 45 minutes or 1 hour.The present embodiment is not limited to this.
Wherein, the attribute data of architectural object includes building total quantity current in map block.
Step 302, according to the attribute data of architectural object, the refresh data at the resource strong point in map block is determined, is refreshed Data are used to indicate the distribution situation after the refreshing of resource strong point in map block.
Terminal device refreshes the regular resource strong point determined in map block according to the attribute data of architectural object using default Refresh data, wherein the default rule that refreshes is used to indicate the corresponding relation between attribute data and refresh data.It is default to refresh Rule refers to the associated description in example below, does not introduce first herein.
Wherein, the refresh data at resource strong point includes the target strong point total quantity at the resource strong point in map block.
Step 303, the resource strong point in map block is refreshed according to refresh data.
Terminal device refreshes according to refresh data to the resource strong point in map block, the map block after being refreshed.
Optionally, the map block after refreshing includes at least two resource strong points, and at least two resource strong points are to refresh It is random distribution in map block afterwards or equally distributed.Ground of the present embodiment at least two resource strong points after refreshing Position in segment is not limited.
The target strong point total quantity at the resource strong point in the segment of terminal device base area, enters to the resource strong point in map block Row refreshes, the map block after being refreshed, and the quantity at resource strong point is target strong point total quantity in the map block after refreshing.
For example the target strong point total quantity at the resource strong point in map block A is 10, terminal device is in map block A Resource strong point is refreshed, and the resource strong point quantity in the map block A after will refreshing is adjusted to 10.
It should be noted that virtually K map block in segment can be refreshed simultaneously, or, have at least two Individual map block is refreshed simultaneously, or, refreshed when any two map block is different in K map block, i.e. K map Each map block in block is refreshed one by one.In order to mitigate the calculating pressure of terminal device, below only with K map block Each map block illustrates exemplified by being refreshed one by one.
In summary, the present embodiment is used to refer to by obtaining the attribute data of the architectural object in map block, attribute data The current distribution situation of architectural object in pictorial map block, the resource strong point in map block is determined according to the attribute data of architectural object Refresh data, refresh data be used to indicating resource strong point in map block refresh after distribution situation, according to refresh data over the ground Resource strong point in segment is refreshed;Terminal device enable based on the current distribution situation of architectural object in map block, Determine to need the distribution situation at resource strong point refreshed in the map block, avoid resource strong point in correlation technique and be evenly distributed on Cause the less efficient situation of the refreshing at resource strong point on virtual map, and then enable resource strong point current with architectural object Distribution situation be according to adaptive intra update, greatly reduce the refreshing at invalid resource strong point, improve the brush at resource strong point New efficiency.
Fig. 4 is refer to, it illustrates the refreshing for being used for resource strong point on virtual map that the application one embodiment provides The flow chart of method, the present embodiment are used to exemplified by virtually Figure 20 as shown in Figure 2 illustrate in this way, this method bag Include:
Step 401, detect whether current refreshing countdown terminates.
Terminal device pre-sets refreshing countdown according to predetermined refresh time interval.Optionally, it is to follow to refresh countdown Ring countdown, i.e., at the end of countdown is refreshed, restart countdown again.
Terminal device detects whether current refreshing countdown terminates in real time, or is detected every predetermined detection time interval Whether current refreshing countdown terminates.
For example it is 45 minutes or 1 hour to refresh countdown, predetermined detection time interval is 30 seconds or 1 minute.The present embodiment The numerical value for refreshing countdown and predetermined detection time interval is not limited.
When terminal device detects that current refreshing countdown terminates as " 0 point and 0 second ", step 402 is performed;Work as terminal At the end of equipment detects current refreshing countdown not, step 401 is continued executing with.
Step 402, at the end of countdown is refreshed, virtual map is divided according to preliminary dimension.
At the end of countdown is refreshed, terminal device is divided virtual map according to preliminary dimension, obtains K map Block.Optionally, K map block is numbered, the Serial Number Range of K map block is " 0 " to " K-1 ".
Step 403, the map block total quantity K that statistics virtual map is divided into.
It is K that terminal device, which counts to obtain the map block total quantity that virtual map is divided into,.
It should be noted that step 402 to step 403 can perform after step 401, can also step 401 it Preceding execution, i.e. terminal device are first divided virtual map according to preliminary dimension, the map that statistics virtual map is divided into Block total quantity, then detect whether current refreshing countdown terminates, at the end of countdown is refreshed, perform step 404.
Step 404, i-th of map block is defined as to the map block of this refreshing, i initial value is 0.
I-th of map block is defined as the map block of this refreshing by terminal device.The correlation of step 402 to step 404 is thin Section refers to the description in above-described embodiment, will not be repeated here.
Step 405, building total quantity current in the map block is obtained.
Current architectural object in terminal device detection map, and obtain building total quantity current in map block.
Step 406, refresh rule according to building total quantity and first are default, obtain the target strong point sum in map block Amount, the first default rule that refreshes are used to indicate the corresponding relation between building total quantity and target strong point total quantity.
Terminal device obtains the target strong point sum in map block according to building total quantity using the first default rule that refreshes Amount, including but not limited to following two possible implementations.
In the first possible implementation, terminal device is previously stored with building total quantity and target strong point total quantity Between corresponding relation, terminal device searched with building the corresponding target strong point total quantity of total quantity according to the corresponding relation.
Schematically, the corresponding relation is as shown in Figure 5.In Figure 5, corresponding target strong point when total quantity is " 8 " is built Total quantity is " 7 ", building total quantity when be " 9 " corresponding target strong point total quantity be " 10 ", build when total quantity is " 10 " pair The target strong point total quantity answered is " 11 ".Such as based between Fig. 5 building total quantitys provided and target strong point total quantity Corresponding relation, current building total quantity are 10, and terminal device searches target strong point sum corresponding with building total quantity " 10 " Measure as " 11 ".
In second of possible implementation, terminal device pre-sets the first preset ratio, when terminal device obtains Into map block during current building total quantity, building total quantity is multiplied with the first preset ratio, obtains the mesh in map block Coupon point total quantity.
For example current building total quantity is 10, the first preset ratio is 120%, then terminal device will build total quantity Be multiplied " 10*120% " with the first preset ratio, and it is 12 to obtain the target strong point total quantity in map block.
Step 407, the resource strong point in map block is refreshed according to target strong point total quantity.
Terminal device refreshes according to target strong point total quantity to the resource strong point in map block, the ground after being refreshed Segment, the quantity at resource strong point is target strong point total quantity in the map block after refreshing.
Optionally, terminal device obtains the current goal strong point total quantity at the resource strong point in map block, according to resource evidence The current goal strong point total quantity and target strong point total quantity of point, it is determined that the strong point quantity of increase or reduction is needed, to map Resource strong point in block is refreshed.
For example the current goal strong point total quantity at the resource strong point in map block A is 7, target strong point total quantity is 10 Individual, terminal device determines to need to increase by 3 resource strong points, the resource strong point in map block A is refreshed, i.e., by map block A In resource strong point quantity increase by 3.
Step 408, it after i plus 1, will judge whether i is less than K.
After i is added 1 by terminal device, judge whether i is less than K.
If it is less than K, then it represents that at least one map block in K map block be present and not yet refresh, terminal device continues executing with Step 404, i.e., the step of i-th of map block being defined as map block.
Such as i 0, K 8, i plus 1 are obtained 1, when judging that 1 is less than 8, performs and the 1st map block is defined as ground The step of segment.
If i is not less than K, then it represents that K map block, which has refreshed, to be finished, and restarts to perform step 401, i.e. detection in real time The step of whether current refreshing countdown terminates.
Again for example, i 7, K 8, i plus 1 are obtained 8, when judging that 8 are equal to 8, restarts to perform detection in real time and work as The step of whether preceding refreshing countdown terminates.
In summary, the embodiment of the present application obtains map also by refreshing rule according to building total quantity and first are default Target strong point total quantity in block, the resource strong point in map block is refreshed according to target strong point total quantity;So that terminal Equipment can determine to need the mesh at resource strong point refreshed in the map block based on the building total quantity of architectural object in map block Coupon point total quantity so that the quantity at resource strong point and the quantity of architectural object are roughly the same in the map block after refreshing, improve The refreshing efficiency at resource strong point.
Because attribute data also includes:Current class of construction scope and the n class of construction are each self-corresponding in map block Asd number, therefore above-mentioned steps 405 to step 407 can be implemented as the following steps by replacement, as shown in Figure 6:
Step 601, current building total quantity and current class of construction scope in map block are obtained.
Terminal device obtains the attribute data of architectural object, and the attribute data includes building total quantity current in map block With the class of construction scope belonging to current multiple architectural objects, class of construction scope includes the n different classes of construction.
Wherein, the n different classes of construction are that the n continuous different classes of construction either n are discontinuous and different The class of construction.
For example it is " 10-18 " that terminal device, which gets class of construction scope current in map block, the class of construction scope " 10-18 " includes 9 continuous different classes of construction.
Again for example, it is " 10-18 " that terminal device, which gets class of construction scope current in map block, the class of construction model Enclosing " 10-18 " includes 5 discontinuous classes of construction, the respectively class of construction " 10 ", the class of construction " 12 ", the class of construction " 13 ", the class of construction " 16 " and the class of construction " 18 ".
Optionally, terminal device obtains the attribute data of architectural object, and the attribute data also includes the n class of construction each Corresponding asd number.Schematically, the attribute data for the architectural object that terminal device is got is as shown in Figure 7.In the figure 7, The map block includes 5 different classes of construction, respectively the class of construction " 10 ", the class of construction " 12 ", the class of construction " 13 ", The class of construction " 16 " and the class of construction " 18 ";Wherein, the class of construction is that the asd number of the architectural object of " 10 " is " 2 ", building Grade is that the asd number of the architectural object of " 12 " is " 8 ", and the class of construction is that the asd number of the architectural object of " 13 " is " 6 ", The class of construction is that the asd number of the architectural object of " 16 " is " 3 ", and the class of construction is for the asd number of the architectural object of " 18 " “7”。
Step 602, refresh rule according to building total quantity and first are default, obtain the target strong point sum in map block Amount, the first default rule that refreshes are used to indicate the corresponding relation between building total quantity and target strong point total quantity.
Computer refreshes rule according to building total quantity and first are default, obtains target strong point total quantity in map block Correlative detail refers to the description in above-described embodiment, will not be repeated here.
Step 603, according to class of construction scope, using the second default regular resource strong point obtained in map block of refreshing Strong point rate range, the second default corresponding pass refreshed rule and be used to indicate between class of construction scope and strong point rate range System.
It should be noted that step 603 can perform before step 602, can also be performed side by side with step 602.This Application embodiment is not limited to this.
Terminal device is according to class of construction scope, using the second default regular resource strong point obtained in map block of refreshing Strong point rate range, including but not limited to following two possible implementations.
In the first possible implementation, terminal device is previously stored with class of construction scope and strong point rate range Between corresponding relation, terminal device according to the corresponding relation search strong point corresponding with class of construction scope rate range.
Schematically, the corresponding relation is as shown in Figure 8.In fig. 8, corresponding strong point when class of construction scope is " 1-9 " Rate range is " 2-10 ", and corresponding strong point rate range is " 11-19 " when class of construction scope is " 10-18 ", the class of construction Corresponding strong point rate range is " 20-28 " when scope is " 19-27 ".Such as the class of construction scope provided based on Fig. 8 with Corresponding relation between the rate range of strong point, current class of construction scope are " 10-18 ", and terminal device is searched and the class of construction Strong point rate range corresponding to scope " 10-18 " is " 11-19 ".
In second of possible implementation, terminal device pre-sets predetermined threshold value, when terminal device gets n When the class of construction and each self-corresponding asd number of the n class of construction, by each class of construction in the n class of construction and building The product of the asd number of grade is summed, and obtains the first total value;First total value is divided by and taken with building total quantity It is whole, obtain grade assessed value;Grade assessed value and predetermined threshold value are subtracted each other to obtain grade minimum value, and by grade assessed value and in advance If threshold value is added to obtain grade maximum;According to grade minimum value and grade maximum, resource strong point in map block is obtained Strong point rate range.
Such as based on Fig. 7 n class of construction provided and each self-corresponding asd number of the n class of construction, by such as Grade assessed value zone_level=is calculated in lower formula | ∑ (10*2+12*8+13*6+16*3+18*7)/26 |=14.Will Grade assessed value " 14 " and predetermined threshold value " 2 " subtract each other to obtain grade minimum value " 12 ", and by grade assessed value " 14 " and default threshold Value " 2 " is added and obtains grade maximum " 16 ";According to grade minimum value " 12 " and grade maximum " 16 ", obtain in map block The strong point rate range " 12-16 " at resource strong point.
Step 604, according to target strong point total quantity and strong point rate range, the resource strong point in map block is brushed Newly.
Terminal device determines m different strong point grades according to strong point rate range, according to target strong point total quantity and m Strong point grade, the resource strong point in map block is refreshed.
Wherein, m different strong point grades are that m continuous different strong point grades either m are discontinuous and different Strong point grade.
For example terminal device determines 5 continuous different strong point grades according to strong point rate range " 12-16 ".
Again for example, terminal device determines 3 discontinuous and different strong points at random according to strong point rate range " 12-16 " Grade, respectively strong point grade " 13 ", strong point grade " 15 " and strong point grade " 16 ".
The present embodiment is not limited to this.It is below m continuous different strong points only with m different strong point grades Illustrated exemplified by grade.
Optionally, terminal device determines that m strong point grade is each at random according to target strong point total quantity and m strong point grade Self-corresponding strong point quantity, so as to refresh to the resource strong point in map block.
For example terminal device determines this 5 strong points etc. at random according to target strong point total quantity " 26 " and 5 strong point grades Each self-corresponding strong point quantity of level, i.e. the strong point quantity of strong point grade " 12 " they are 2, and the strong point quantity of strong point grade " 13 " is 3, according to The strong point quantity of point grade " 14 " is 5, and the strong point quantity of strong point grade " 15 " is 10, and the strong point quantity of strong point grade " 16 " is 6.
In summary, the present embodiment is also by the way that according to class of construction scope, map is obtained using the second default rule that refreshes The strong point rate range at the resource strong point in block, according to target strong point total quantity and strong point rate range, to the money in map block Source strong point is refreshed;Enable terminal device to be based on class of construction scope in map block, determine to need to brush in the map block The strong point rate range at new resource strong point so that class of construction scope and strong point rate range be substantially in the map block after refreshing Quite, the refreshing effect refreshed to the resource strong point in map block is improved.
It should be noted that each self-corresponding strong point of m strong point grade that terminal device is determined at random in the above method There is great randomness in quantity, and each strong point grade quantity accounting in the total quantity of target strong point is not necessarily suitable, in order to M strong point grade suitable quantity accounting in the total quantity of target strong point can be more determined, above-mentioned steps 601 to 604 are also Including the following steps, as shown in Figure 9:
Step 901, terminal device obtains the attribute data of the architectural object in map block, and the attribute data includes current Build total quantity, the n class of construction and each self-corresponding asd number of the n class of construction.
Step 902, terminal device refreshes rule according to building total quantity and first are default, obtains the target evidence in map block Point total quantity, the first default rule that refreshes are used to indicate the corresponding relation between building total quantity and target strong point total quantity.
Step 903, terminal device obtains the money in map block according to class of construction scope using the second default rule that refreshes The strong point rate range at source strong point, the second default rule that refreshes are used to indicate between class of construction scope and strong point rate range Corresponding relation, strong point rate range include m different strong point grades.
The correlative detail of step 901 to step 903 refers to the description in above-mentioned several embodiments, is repeated no more secondary.
Step 904, terminal device refreshes rule according to m strong point grade and the 3rd are default, obtains m strong point grade each Corresponding quantity accounting, the 3rd default rule that refreshes are used to indicate the corresponding relation between strong point grade and quantity accounting.
Terminal device refreshes rule according to m strong point grade and the 3rd are default, obtains each self-corresponding number of m strong point grade Accounting is measured, including:For each strong point grade in m strong point grade, weight and second pre- will be preset corresponding to the grade of strong point If ratio is multiplied, the product value of strong point grade is obtained, each self-corresponding product value of m strong point grade is summed, obtain the Two total values, for each strong point grade, the product value of strong point grade and the second total value are divided by, obtain the number of strong point grade Measure accounting.
Optionally, terminal device is previously stored between strong point grade, default weight and the second preset ratio this three Corresponding relation, terminal device search corresponding with strong point grade default weight and the second preset ratio according to the corresponding relation.
Schematically, the corresponding relation is as shown in Figure 10.In Fig. 10, weight is preset corresponding to strong point grade " 10 " is " 0.4 ", corresponding second preset ratio are " 60% ";It is " 0.6 " that weight is preset corresponding to strong point grade " 11 ", corresponding second Preset ratio is " 80% ";It is " 0.5 " that weight is preset corresponding to strong point grade " 12 ", and corresponding second preset ratio is " 120% ".
It is such as corresponding between strong point grade, default weight and the second preset ratio this three provided based on Figure 10 Relation, when terminal device determines that m strong point grade includes 3 strong point grades, respectively strong point grade " 10 ", strong point grade " 11 " and strong point grade " 12 ", passes through formula:0.4*60%/(0.4*60%+0.6*80%+0.5*120%), is calculated evidence The quantity accounting of point grade " 10 " is approximately equal to 19%;Pass through formula:0.6*80%/(0.4*60%+0.6*80%+0.5* 120%) the quantity accounting that strong point grade " 11 ", is calculated is approximately equal to 36%;Pass through formula:0.5*120%/(0.4*60%+ 0.6*80%+0.5*120%), the quantity accounting that strong point grade " 12 " is calculated is approximately equal to 45%.
Step 905, terminal device obtains according to target strong point total quantity and each self-corresponding quantity accounting of m strong point grade To each self-corresponding strong point quantity of m strong point grade.
For example target strong point total quantity is 100, the quantity accounting of strong point grade " 10 " is 19%, strong point grade " 10 " Quantity accounting is 36%, and the quantity accounting of strong point grade " 10 " is 45%, then the strong point quantity of strong point grade " 10 " is 100* 19%=19, the strong point quantity of strong point grade " 11 " is 100*36%=36, and the strong point quantity of strong point grade " 12 " is 100* 45%=45.
Step 906, terminal device is according to each self-corresponding strong point quantity of m strong point grade, to the resource evidence in map block Point is refreshed.
Terminal device is brushed according to each self-corresponding strong point quantity of m strong point grade to the resource strong point in map block Newly, the quantity at the resource strong point in the map block after refreshing is target strong point total quantity, and target strong point total quantity includes m strong point Each self-corresponding strong point quantity of grade.
In a schematical example, architectural object is city, as shown in Figure 11 A.Originally 2 are included in map block 110 Individual city 111 and 2 resource strong points 112, are then migrated in the presence of a city 113, migrate into map block 111, work as brush It is 3 that terminal device, which obtains city total quantity current in map block 110, at the end of new countdown, and according to this 3 detected The city grade of city, it is " 10-11 " that statistics, which obtains city rate range current in the map block 110, i.e., including 3 cities Grade, the city quantity of city grade " 10 " is 2, and the city quantity of city grade " 11 " is " 1 ".Terminal device is according to current City total quantity " 3 ", it is " 3 " to determine target strong point total quantity;It is each self-corresponding according to 2 city grades and 2 city grades City quantity, determine 2 strong point grades and each self-corresponding strong point quantity of 2 strong point grades, the i.e. city of strong point grade " 11 " Pond quantity is 2, and the city quantity of strong point grade " 12 " is " 1 ".Terminal device is got in map block 110 before being refreshed The strong point grade at 2 current resource strong points 112 is respectively strong point grade " 9 " and strong point grade " 10 " so that is starting to refresh When terminal device according to the data that get and the refresh data determined, 2 current resource strong points 112 are adjusted to 2 Individual strong point grade is the resource strong point 114 of " 11 ", and increases the resource evidence that a strong point grade is " 12 " in map block 110 Point 114.The interface schematic diagram of map block 110 after refreshing is as shown in Figure 11 B.
Following is the application device embodiment, can be used for performing the application embodiment of the method.It is real for the application device The details not disclosed in example is applied, refer to the application embodiment of the method.
Figure 12 is refer to, it illustrates the refreshing for being used for resource strong point on virtual map that the application one embodiment provides The structural representation of device.This be used for virtual map on resource strong point refreshing apparatus can by special hardware circuit, or, Software and hardware be implemented in combination with as refreshing a device all or part of, this is used for the refreshing apparatus at resource strong point on virtual map Including:Acquisition module 1210, determining module 1220 and refresh module 1230.
Acquisition module 1210, for realizing at least one step in above-mentioned steps 301,405,601,901.
Determining module 1220, for realizing at least one step in above-mentioned steps 302,406,602,603,902,903.
Refresh module 1230, for realizing at least one step in above-mentioned steps 303,407,604.
In the alternative embodiment provided based on embodiment illustrated in fig. 12, as shown in figure 13, class of construction scope bag The n different classes of construction are included, attribute data also includes:Each self-corresponding asd number of the n class of construction, n is positive integer;
Determining module 1220, in addition to:First processing units 1221, the processing unit of second processing unit 1222 and the 3rd 1223;
First processing units 1221, for by the building number of each class of construction and the class of construction in the n class of construction The product of amount is summed, and obtains the first total value;First total value is divided by and rounded with building total quantity, grade is obtained and comments Valuation;
Second processing unit 1222, for grade assessed value and predetermined threshold value to be subtracted each other to obtain grade minimum value, and incite somebody to action etc. Level assessed value is added to obtain grade maximum with predetermined threshold value;
3rd processing unit 1223, for according to grade minimum value and grade maximum, obtaining the resource evidence in map block The strong point rate range of point.
In the alternative embodiment provided based on embodiment illustrated in fig. 12, as shown in figure 13, strong point rate range bag M different strong point grades are included, m is positive integer;
Refresh module 1230, in addition to:Fourth processing unit 1231, the 5th processing unit 1232 and refresh unit 1233;
Fourth processing unit 1231, for realizing above-mentioned steps 904.
5th processing unit 1232, for realizing above-mentioned steps 905.
Refresh unit 1233, for realizing above-mentioned steps 906.
In the alternative embodiment provided based on embodiment illustrated in fig. 12, as shown in figure 13, fourth processing unit 1231 are additionally operable to for each strong point grade in m strong point grade, are preset weight is preset corresponding to the grade of strong point with second Ratio is multiplied, and obtains the product value of strong point grade;Each self-corresponding product value of m strong point grade is summed, obtains second Total value;For each strong point grade, the product value of strong point grade and the second total value are divided by, obtain the quantity of strong point grade Accounting.
Correlative detail can be with reference to shown in referring to figs. 2 to Figure 11 B embodiment of the method.Wherein, acquisition module 1210 is additionally operable to Realize any implicit or disclosed function related to obtaining step of other in above method embodiment;Determining module 1220 is also used In realizing that other in above method embodiment are arbitrarily implicit or the disclosed function related with determination step;Refresh module 1230 is also For realizing any implicit or disclosed function related to refresh step of other in above method embodiment.
It should be noted that the device that above-described embodiment provides, when realizing its function, only with above-mentioned each functional module Division for example, in practical application, can be completed as needed and by above-mentioned function distribution by different functional modules, The internal structure of equipment is divided into different functional modules, to complete all or part of function described above.In addition, The apparatus and method embodiment that above-described embodiment provides belongs to same design, and its specific implementation process refers to embodiment of the method, this In repeat no more.
The embodiment of the present application provides a kind of terminal device, and the terminal device includes processor and memory, in memory At least one instruction is stored with, at least one instruction is loaded by processor and performed to realize that above-mentioned each embodiment of the method provides Be used for virtual map on resource strong point method for refreshing.
It should be noted that terminal 1400 or below figure that the terminal device, which can be below figure 14, to be provided 15 servers 1500 provided.
Figure 14 is refer to, the structural representation of the terminal 1400 provided it illustrates the application one embodiment.
The terminal 1400 can be:Smart mobile phone, tablet personal computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, notebook computer Or desktop computer.Terminal 1400 be also possible to be referred to as user equipment, portable terminal, laptop terminal, terminal console etc. other Title.
Generally, terminal 1400 includes:Processor 1401 and memory 1402.
Processor 1401 can include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 1401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1401 can also include primary processor and coprocessor, main Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state. In some embodiments, processor 1401 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used for rendering and drawing for the content of display required for being responsible for display screen.In some embodiments, processor 1401 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are used to handle relevant machine learning Calculate operation.
Memory 1402 can include one or more computer-readable recording mediums, and the computer-readable recording medium can To be non-transient.Memory 1402 may also include high-speed random access memory, and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In certain embodiments, the non-transient computer in memory 1402 can Read storage medium to be used to store at least one instruction, at least one instruct is used for performed by processor 1401 to realize this Shen Please in embodiment of the method provide be used for virtual map on resource strong point method for refreshing.
In certain embodiments, terminal 1400 is also optional includes:Peripheral interface 1403 and at least one periphery are set It is standby.It can be connected between processor 1401, memory 1402 and peripheral interface 1403 by bus or signal wire.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral interface 1403.Specifically, ancillary equipment includes: In radio circuit 1404, touch display screen 1405, camera 1406, voicefrequency circuit 1407, positioning component 1408 and power supply 1409 At least one.
Peripheral interface 1403 can be used at least one outer of I/O (Input/Output, input/output) correlations Peripheral equipment is connected to processor 1401 and memory 1402.In certain embodiments, processor 1401, memory 1402 and periphery Equipment interface 1403 is integrated on same chip or circuit board;In some other embodiments, processor 1401, memory 1402 and peripheral interface 1403 in any one or two can be realized on single chip or circuit board, this implementation Example is not limited to this.
Radio circuit 1404 is used to receive and launch RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1404 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1404 is by telecommunications Number being converted to electromagnetic signal is transmitted, or, the electromagnetic signal received is converted into electric signal.Alternatively, radio circuit 1404 include:Antenna system, RF transceivers, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution Code chipset, user identity module card etc..Radio circuit 1404 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but is not limited to:WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations In example, it is relevant that radio circuit 1404 can also include NFC (Near Field Communication, wireless near field communication) Circuit, the application are not limited to this.
Display screen 1405 is used to show UI (User Interface, user interface).The UI can include figure, text, Icon, video and its their any combination.When display screen 1405 is touch display screen, display screen 1405 also there is collection to exist The surface of display screen 1405 or the ability of the touch signal of surface.The touch signal can be inputted to place as control signal Reason device 1401 is handled.Now, display screen 1405 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft to press Button and/or soft keyboard.In certain embodiments, display screen 1405 can be one, set the front panel of terminal 1400;Another In a little embodiments, display screen 1405 can be at least two, be separately positioned on the different surfaces of terminal 1400 or in foldover design; In still other embodiments, display screen 1405 can be flexible display screen, be arranged on the curved surface of terminal 1400 or fold On face.Even, display screen 1405 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1405 can be with Using LCD (Liquid Crystal Display, LCDs), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. material prepare.
CCD camera assembly 1406 is used to gather image or video.Alternatively, CCD camera assembly 1406 includes front camera And rear camera.Generally, front camera is arranged on the front panel of terminal, and rear camera is arranged on the back side of terminal. Rear camera at least two, it is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively in some embodiments As any one in head, to realize main camera and background blurring function, main camera and wide are realized in the fusion of depth of field camera Pan-shot and VR (Virtual Reality, virtual reality) shoot functions or other fusions are realized in angle camera fusion Shoot function.In certain embodiments, CCD camera assembly 1406 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp or double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1407 can include microphone and loudspeaker.Microphone is used for the sound wave for gathering user and environment, and Convert sound waves into electric signal and input to processor 1401 and handled, or input to radio circuit 1404 to realize that voice leads to Letter.For stereo collection or the purpose of noise reduction, microphone can be multiple, be separately positioned on the different parts of terminal 1400. Microphone can also be array microphone or omnidirectional's collection type microphone.Loudspeaker is then used to that processor 1401 or radio frequency will to be come from The electric signal of circuit 1404 is converted to sound wave.Loudspeaker can be that traditional wafer speaker or piezoelectric ceramics are raised one's voice Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to sound wave that the mankind do not hear to carry out the purposes such as ranging.In certain embodiments, voicefrequency circuit 1407 may be used also With including earphone jack.
Positioning component 1408 is used for the current geographic position of positioning terminal 1400, to realize navigation or LBS (Location Based Service, location Based service).Positioning component 1408 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 1409 is used to be powered for each component in terminal 1400.Power supply 1409 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 1409 includes rechargeable battery, the rechargeable battery can have micro USB Battery or wireless charging battery.Wired rechargeable battery is the battery to be charged by Wireline, and wireless charging battery is to pass through The battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In certain embodiments, terminal 1400 also includes one or more sensors 1410.The one or more senses Device 1410 includes but is not limited to:Acceleration transducer 1411, gyro sensor 1412, pressure sensor 1413, fingerprint sensing Device 1414, optical sensor 1415 and proximity transducer 1416.
Acceleration transducer 1411 can detect the acceleration in three reference axis of the coordinate system established with terminal 1400 Size.For example acceleration transducer 1411 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 1401 acceleration of gravity signals that can be gathered according to acceleration transducer 1411, control touch display screen 1405 is with transverse views Or longitudinal view carries out the display of user interface.Acceleration transducer 1411 can be also used for game or the exercise data of user Collection.
Gyro sensor 1412 can be with the body direction of detection terminal 1400 and rotational angle, gyro sensor 1412 Collection user can be cooperateed with to act the 3D of terminal 1400 with acceleration transducer 1411.Processor 1401 is according to gyro sensors The data that device 1412 gathers, it is possible to achieve following function:Action induction (for example UI is changed according to the tilt operation of user), clap Image stabilization, game control and inertial navigation when taking the photograph.
Pressure sensor 1413 can be arranged on the side frame of terminal 1400 and/or the lower floor of touch display screen 1405.When When pressure sensor 1413 is arranged on the side frame of terminal 1400, gripping signal of the user to terminal 1400 can be detected, by The gripping signal that reason device 1401 gathers according to pressure sensor 1413 carries out right-hand man's identification or prompt operation.Work as pressure sensor 1413 when being arranged on the lower floor of touch display screen 1405, and the pressure of touch display screen 1405 is grasped according to user by processor 1401 Make, realize and the operability control on UI interfaces is controlled.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 1414 is used for the fingerprint for gathering user, is collected by processor 1401 according to fingerprint sensor 1414 Fingerprint recognition user identity, or, the identity by fingerprint sensor 1414 according to the fingerprint recognition user collected.Knowing When the identity for not going out user is trusted identity, the user is authorized to perform related sensitive operation, sensitivity behaviour by processor 1401 Work includes solving lock screen, checks encryption information, downloads software, payment and change setting etc..Fingerprint sensor 1414 can be set Put the front, the back side or side of terminal 1400.When being provided with physical button or manufacturer Logo in terminal 1400, fingerprint sensor 1414 can integrate with physical button or manufacturer Logo.
Optical sensor 1415 is used to gather ambient light intensity.In one embodiment, processor 1401 can be according to light The ambient light intensity that sensor 1415 gathers is learned, controls the display brightness of touch display screen 1405.Specifically, ambient light intensity is worked as When higher, the display brightness of touch display screen 1405 is heightened;When ambient light intensity is relatively low, the aobvious of touch display screen 1405 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1401 can also gather according to optical sensor 1415, is moved State adjusts the acquisition parameters of CCD camera assembly 1406.
Proximity transducer 1416, also referred to as range sensor, it is generally arranged at the front panel of terminal 1400.Proximity transducer 1416 are used to gather the distance between front of user and terminal 1400.In one embodiment, when proximity transducer 1416 is examined When measuring the distance between front of user and terminal 1400 and tapering into, by processor 1401 control touch display screen 1405 from Bright screen state switches to breath screen state;When proximity transducer 1416 detect the distance between front of user and terminal 1400 by When gradual change is big, touch display screen 1405 is controlled to switch to bright screen state from breath screen state by processor 1401.
, can be with it will be understood by those skilled in the art that the restriction of the structure shown in Figure 14 not structure paired terminal 1400 Including than illustrating more or less components, either combining some components or being arranged using different components.
Figure 15 is refer to, the structural representation of the server 1500 provided it illustrates the application one embodiment.Specifically For:The server 1500 is including CPU (CPU) 1501 including random access memory (RAM) 1502 and only Read the system storage 1504 of memory (ROM) 1503, and connection system storage 1504 and CPU 1501 System bus 1505.The server 1500 also includes helping transmitting the substantially defeated of information between each device in computer Enter/output system (I/O systems) 1506, and for storage program area 1513, application program 1514 and other program modules 1515 mass-memory unit 1507.
The basic input/output 1506 includes for the display 1508 of display information and inputted for user The input equipment 1509 of such as mouse, keyboard etc of information.Wherein described display 1508 and input equipment 1509 all pass through The IOC 1510 for being connected to system bus 1505 is connected to CPU 1501.The basic input/defeated Going out system 1506 can also touch including IOC 1510 for receiving and handling from keyboard, mouse or electronics Control the input of multiple other equipments such as pen.Similarly, IOC 1510 also provide output to display screen, printer or Other kinds of output equipment.
The mass-memory unit 1507 (is not shown by being connected to the bulk memory controller of system bus 1505 Go out) it is connected to CPU 1501.The mass-memory unit 1507 and its associated computer-readable medium are Server 1500 provides non-volatile memories.That is, the mass-memory unit 1507 can include such as hard disk or The computer-readable medium (not shown) of person's CD-ROI drivers etc.
Without loss of generality, the computer-readable medium can include computer-readable storage medium and communication media.Computer Storage medium is included for information such as storage computer-readable instruction, data structure, program module or other data The volatibility and non-volatile, removable and irremovable medium that any method or technique is realized.Computer-readable storage medium includes RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape Box, tape, disk storage or other magnetic storage apparatus.Certainly, skilled person will appreciate that the computer-readable storage medium It is not limited to above-mentioned several.Above-mentioned system storage 1504 and mass-memory unit 1507 may be collectively referred to as memory.
According to the various embodiments of the application, the server 1500 can also be arrived by network connections such as internets Remote computer operation on network.Namely server 1500 can be connect by the network being connected on the system bus 1505 Mouth unit 1511 is connected to network 1512, in other words, can also be connected to using NIU 1511 other kinds of Network or remote computer system (not shown).
Optionally, at least one instruction, at least one section of program, code set or instruction set are stored with the memory, at least One instruction, at least one section of program, code set or instruction set are loaded by processor and performed to realize that above-mentioned each method is implemented The method for refreshing for being used for resource strong point on virtual map that example provides.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realize the brush for being used for resource strong point on virtual map of above-described embodiment All or part of step can be completed by hardware in new method, by program the hardware of correlation can also be instructed to complete, Described program can be stored in a kind of computer-readable recording medium, and storage medium mentioned above can be read-only storage Device, disk or CD etc..In other words, at least one instruction, at least one section of program, code set are stored with the storage medium or is referred to Order collection, at least one instruction, at least one section of program, code set or instruction set are loaded by processor and performed to realize as described above The method for refreshing for being used for resource strong point on virtual map described in each embodiment of the method.
The foregoing is only the preferred embodiment of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent substitution and improvements made etc., it should be included within the protection domain of the application.

Claims (14)

1. a kind of method for refreshing for resource strong point on virtual map, it is characterised in that methods described includes:
The attribute data of the architectural object in map block is obtained, the map block corresponds to one piece of region in the virtual map, The attribute data is used for the distribution situation for indicating that architectural object is current described in the map block;
According to the attribute data of the architectural object, the refresh data at the resource strong point in the map block is determined, it is described Refresh data is used to indicate the distribution situation after the refreshing of resource strong point described in the map block;
The resource strong point in the map block is refreshed according to the refresh data.
2. according to the method for claim 1, it is characterised in that the attribute data includes current in the map block build Build total quantity;
The attribute data according to the architectural object, the refresh data at the resource strong point in the map block is determined, including:
Refresh rule according to the building total quantity and first are default, obtain the target strong point total quantity in the map block, institute The first default rule that refreshes is stated to be used to indicate the corresponding relation between the building total quantity and target strong point total quantity;
It is described that the resource strong point in the map block is refreshed according to the refresh data, including:
The resource strong point in the map block is refreshed according to target strong point total quantity.
3. according to the method for claim 2, it is characterised in that the attribute data also includes:It is current in the map block Class of construction scope;
The attribute data according to the architectural object, the refresh data at the resource strong point in the map block is determined, is also wrapped Include:
According to the class of construction scope, using the second default regular resource strong point obtained in the map block of refreshing Strong point rate range, described second it is default refresh rule be used to indicating the class of construction scope and the strong point rate range it Between corresponding relation;
It is described that the resource strong point in the map block is refreshed according to the refresh data, including:
According to target strong point total quantity and the strong point rate range, the resource strong point in the map block is carried out Refresh.
4. according to the method for claim 3, it is characterised in that the class of construction scope includes n different buildings etc. Level, the attribute data also include:Each self-corresponding asd number of the n class of construction, the n are positive integer;
It is described according to the class of construction scope, the resource evidence in the map block is obtained using the second default rule that refreshes The strong point rate range of point, including:
Each class of construction in the n class of construction and the product of the asd number of the class of construction are summed, Obtain the first total value;
First total value is divided by and rounded with the building total quantity, obtains grade assessed value;
The grade assessed value and the predetermined threshold value are subtracted each other to obtain grade minimum value, and by the grade assessed value with presetting Threshold value is added to obtain grade maximum;
According to the grade minimum value and the grade maximum, the strong point at the resource strong point in the map block etc. is obtained Level scope.
5. according to the method for claim 3, it is characterised in that the strong point rate range includes m different strong points etc. Level, the m is positive integer;
It is described according to target strong point total quantity and the strong point rate range, to the resource strong point in the map block Refreshed, including:
Refresh rule according to m strong point grade and the 3rd are default, obtain each self-corresponding quantity of m strong point grade and account for Than the described 3rd default rule that refreshes is used to indicate the corresponding relation between the strong point grade and the quantity accounting;
According to target strong point total quantity and each self-corresponding quantity accounting of m strong point grade, the m strong point is obtained Each self-corresponding strong point quantity of grade;
According to each self-corresponding strong point quantity of m strong point grade, the resource strong point in the map block is brushed Newly.
6. according to the method for claim 5, it is characterised in that described according to m strong point grade and the 3rd default brush New rule, obtains each self-corresponding quantity accounting of m strong point grade, including:
For each strong point grade in the grade of the m strong point, weight and the will be preset corresponding to the strong point grade Two preset ratios are multiplied, and obtain the product value of the strong point grade;
The m each self-corresponding product values of strong point grade are summed, obtain the second total value;
For each strong point grade, the product value of the strong point grade and second total value are divided by, obtained described The quantity accounting of strong point grade.
7. a kind of refreshing apparatus for resource strong point on virtual map, it is characterised in that described device includes:
Acquisition module, for obtaining the attribute data of the architectural object in map block, the map block corresponds to the virtual map In one piece of region, the attribute data is used to indicate architectural object is current described in the map block distribution situation;
Determining module, for the attribute data according to the architectural object, determine the resource strong point in the map block Refresh data, the refresh data are used to indicate the distribution situation after the refreshing of resource strong point described in the map block;
Refresh module, for being refreshed according to the refresh data to the resource strong point in the map block.
8. device according to claim 7, it is characterised in that the attribute data includes current in the map block build Build total quantity;
The determining module, it is additionally operable to refresh rule according to the building total quantity and first are default, obtains in the map block Target strong point total quantity, the described first default rule that refreshes is used to indicate the building total quantity and target strong point sum Corresponding relation between amount;
The refresh module, it is additionally operable to carry out the resource strong point in the map block according to target strong point total quantity Refresh.
9. device according to claim 8, it is characterised in that the attribute data also includes:It is current in the map block Class of construction scope;
The determining module, it is additionally operable to according to the class of construction scope, the map is obtained using the second default rule that refreshes The strong point rate range at the resource strong point in block, the described second default rule that refreshes are used to indicate the class of construction scope With the corresponding relation between the strong point rate range;
The refresh module, it is additionally operable to according to target strong point total quantity and the strong point rate range, to the map block In the resource strong point refreshed.
10. device according to claim 9, it is characterised in that the class of construction scope includes n different buildings etc. Level, the attribute data also include:Each self-corresponding asd number of the n class of construction, the n are positive integer;
The determining module, in addition to:First processing units, second processing unit and the 3rd processing unit;
The first processing units, for building each class of construction in the n class of construction and the class of construction The product for building quantity is summed, and obtains the first total value;First total value is divided by and taken with the building total quantity It is whole, obtain grade assessed value;
The second processing unit, for the grade assessed value and the predetermined threshold value to be subtracted each other to obtain grade minimum value, and The grade assessed value is added with predetermined threshold value to obtain grade maximum;
3rd processing unit, for according to the grade minimum value and the grade maximum, obtaining in the map block The resource strong point strong point rate range.
11. device according to claim 9, it is characterised in that the strong point rate range includes m different strong points etc. Level, the m is positive integer;
The refresh module, in addition to:Fourth processing unit, the 5th processing unit and refresh unit;
The fourth processing unit, for refreshing rule according to m strong point grade and the 3rd are default, obtain the m evidence Point each self-corresponding quantity accounting of grade, the described 3rd default rule that refreshes are used to indicate that the strong point grade accounts for the quantity Corresponding relation than between;
5th processing unit, for according to target strong point total quantity and each self-corresponding number of m strong point grade Accounting is measured, obtains each self-corresponding strong point quantity of m strong point grade;
The refresh unit, for according to each self-corresponding strong point quantity of m strong point grade, to the institute in the map block Resource strong point is stated to be refreshed.
12. device according to claim 11, it is characterised in that the fourth processing unit is additionally operable to for the m Each strong point grade in the grade of strong point, it is multiplied weight is preset corresponding to the strong point grade with the second preset ratio, Obtain the product value of the strong point grade;The m each self-corresponding product values of strong point grade are summed, obtain the Two total values;For each strong point grade, the product value of the strong point grade and second total value are divided by, obtained The quantity accounting of the strong point grade.
13. a kind of terminal device, it is characterised in that the terminal device includes processor and memory, is deposited in the memory At least one instruction is contained, at least one instruction is loaded by the processor and performed to realize such as claim 1 to 6 institute That states is used for the method for refreshing at resource strong point on virtual map.
14. a kind of computer-readable recording medium, it is characterised in that at least one instruction, institute are stored with the storage medium State at least one instruction and loaded as the processor and performed and be used for virtual map as described in claim 1 to 6 to realize The method for refreshing at resource strong point.
CN201711233543.8A 2017-11-30 2017-11-30 Refreshing method and device for resource site on virtual map Active CN107803030B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711233543.8A CN107803030B (en) 2017-11-30 2017-11-30 Refreshing method and device for resource site on virtual map
PCT/CN2018/117769 WO2019105352A1 (en) 2017-11-30 2018-11-27 Method and device for refreshing resource bases in virtual map and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711233543.8A CN107803030B (en) 2017-11-30 2017-11-30 Refreshing method and device for resource site on virtual map

Publications (2)

Publication Number Publication Date
CN107803030A true CN107803030A (en) 2018-03-16
CN107803030B CN107803030B (en) 2020-12-25

Family

ID=61581903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711233543.8A Active CN107803030B (en) 2017-11-30 2017-11-30 Refreshing method and device for resource site on virtual map

Country Status (2)

Country Link
CN (1) CN107803030B (en)
WO (1) WO2019105352A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109806592A (en) * 2019-01-18 2019-05-28 网易(杭州)网络有限公司 A kind of monitoring method and device of game resource
WO2019105352A1 (en) * 2017-11-30 2019-06-06 腾讯科技(深圳)有限公司 Method and device for refreshing resource bases in virtual map and storage medium
CN110102052A (en) * 2019-05-08 2019-08-09 腾讯科技(上海)有限公司 Virtual resource put-on method, device, electronic device and storage medium
CN111617484A (en) * 2020-06-04 2020-09-04 珠海金山网络游戏科技有限公司 Map processing method and device
CN111744181A (en) * 2020-07-01 2020-10-09 网易(杭州)网络有限公司 In-game information display method and device, game client and medium
CN111939566A (en) * 2020-09-03 2020-11-17 网易(杭州)网络有限公司 Virtual material deployment method and device
CN115487510A (en) * 2022-08-05 2022-12-20 网易(杭州)网络有限公司 Interactive control method and device of game and electronic equipment
CN116351058A (en) * 2022-12-26 2023-06-30 网易(杭州)网络有限公司 Virtual resource display method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4733870A (en) * 1986-09-03 1988-03-29 Ed Rinehart Strategy game emphasizing economical and political development
CN103544025A (en) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 Online game resource acquisition method and device
CN105589861A (en) * 2014-10-22 2016-05-18 杭州海康威视系统技术有限公司 Method for rapid positioning in map data
CN106164950A (en) * 2014-03-28 2016-11-23 微软技术许可有限责任公司 To group across client subscription
US20170157518A1 (en) * 2015-12-04 2017-06-08 Sony Interactive Entertainment America Llc Balancing multiple team based games
CN107038050A (en) * 2017-04-25 2017-08-11 合肥充盈信息科技有限公司 A kind of game configuration loading method based on virtual server
CN107077460A (en) * 2014-09-30 2017-08-18 微软技术许可有限责任公司 Structuring sample author content
CN107085612A (en) * 2017-05-15 2017-08-22 腾讯科技(深圳)有限公司 media content display method, device and storage medium
CN107170033A (en) * 2017-04-12 2017-09-15 青岛市光电工程技术研究院 Smart city 3D live-action map systems based on laser radar technique

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566993A (en) * 2008-04-22 2009-10-28 北京中食新华科技有限公司 Logistics WebGIS algorithm capable of balancing load
JP5378133B2 (en) * 2009-09-28 2013-12-25 任天堂株式会社 Bird's-eye view map resource generation program, bird's-eye view map display program, bird's-eye view map resource generation device, and bird's-eye view map display device
CN106445588B (en) * 2016-09-08 2018-05-04 腾讯科技(深圳)有限公司 The update method and device of attribute information
CN107803030B (en) * 2017-11-30 2020-12-25 腾讯科技(成都)有限公司 Refreshing method and device for resource site on virtual map

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4733870A (en) * 1986-09-03 1988-03-29 Ed Rinehart Strategy game emphasizing economical and political development
CN103544025A (en) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 Online game resource acquisition method and device
CN106164950A (en) * 2014-03-28 2016-11-23 微软技术许可有限责任公司 To group across client subscription
CN107077460A (en) * 2014-09-30 2017-08-18 微软技术许可有限责任公司 Structuring sample author content
CN105589861A (en) * 2014-10-22 2016-05-18 杭州海康威视系统技术有限公司 Method for rapid positioning in map data
US20170157518A1 (en) * 2015-12-04 2017-06-08 Sony Interactive Entertainment America Llc Balancing multiple team based games
CN107170033A (en) * 2017-04-12 2017-09-15 青岛市光电工程技术研究院 Smart city 3D live-action map systems based on laser radar technique
CN107038050A (en) * 2017-04-25 2017-08-11 合肥充盈信息科技有限公司 A kind of game configuration loading method based on virtual server
CN107085612A (en) * 2017-05-15 2017-08-22 腾讯科技(深圳)有限公司 media content display method, device and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019105352A1 (en) * 2017-11-30 2019-06-06 腾讯科技(深圳)有限公司 Method and device for refreshing resource bases in virtual map and storage medium
CN109806592A (en) * 2019-01-18 2019-05-28 网易(杭州)网络有限公司 A kind of monitoring method and device of game resource
CN110102052B (en) * 2019-05-08 2022-06-10 腾讯科技(上海)有限公司 Virtual resource delivery method, device, electronic device and storage medium
CN110102052A (en) * 2019-05-08 2019-08-09 腾讯科技(上海)有限公司 Virtual resource put-on method, device, electronic device and storage medium
CN111617484A (en) * 2020-06-04 2020-09-04 珠海金山网络游戏科技有限公司 Map processing method and device
CN111617484B (en) * 2020-06-04 2023-09-05 珠海金山数字网络科技有限公司 Map processing method and device
CN111744181A (en) * 2020-07-01 2020-10-09 网易(杭州)网络有限公司 In-game information display method and device, game client and medium
CN111744181B (en) * 2020-07-01 2024-07-23 网易(杭州)网络有限公司 Method and device for displaying information in game, game client and medium
CN111939566A (en) * 2020-09-03 2020-11-17 网易(杭州)网络有限公司 Virtual material deployment method and device
CN111939566B (en) * 2020-09-03 2024-01-26 网易(杭州)网络有限公司 Virtual material deployment method and device
CN115487510A (en) * 2022-08-05 2022-12-20 网易(杭州)网络有限公司 Interactive control method and device of game and electronic equipment
CN116351058A (en) * 2022-12-26 2023-06-30 网易(杭州)网络有限公司 Virtual resource display method and device, electronic equipment and storage medium
CN116351058B (en) * 2022-12-26 2025-05-27 网易(杭州)网络有限公司 Virtual resource display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2019105352A1 (en) 2019-06-06
CN107803030B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN107803030A (en) The method for refreshing and device at resource strong point on virtual map
CN109712224A (en) Rendering method, device and the smart machine of virtual scene
CN109614171A (en) Virtual item transfer method, device, electronic equipment and computer storage medium
CN109976930A (en) Detection method, system and the storage medium of abnormal data
CN108900858A (en) A kind of method and apparatus for giving virtual present
CN107959860A (en) The method and apparatus for showing live list
CN108579084A (en) Method for information display, device, equipment in virtual environment and storage medium
CN108829881A (en) video title generation method and device
CN108063981A (en) The method and apparatus that the attribute of direct broadcasting room is set
CN108401124A (en) The method and apparatus of video record
CN110288689A (en) The method and apparatus that electronic map is rendered
CN109917910A (en) Display methods, device, equipment and the storage medium of line style technical ability
CN109327608A (en) Method, terminal, server and the system that song is shared
CN108363982B (en) Method and device for determining number of objects
CN107959893A (en) The method and apparatus for showing account head portrait
CN109887494A (en) Method and apparatus for reconstructing speech signal
CN109840043A (en) The method, apparatus of construction of buildings, equipment and storage medium in virtual environment
CN109992685A (en) A kind of method and device of retrieving image
CN109859102A (en) Special display effect method, apparatus, terminal and storage medium
CN110535890A (en) The method and apparatus that file uploads
CN108897597A (en) The method and apparatus of guidance configuration live streaming template
CN109948581A (en) Picture and text rendering method, device, equipment and readable storage medium storing program for executing
CN108844529A (en) Determine the method, apparatus and smart machine of posture
CN109886208A (en) Method, apparatus, computer equipment and the storage medium of object detection
CN109276895A (en) Modular system, the method, apparatus of Topology identification and system

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