摘要 |
Provided is a method for the movement of an image object. In the method: A. determining the direction of movement of an image object to be moved, and a module X corresponding to same; B. moving the module X along the direction of movement by one unit; determining whether or not an overlap exists between the module X and another module; if not, terminating the process; otherwise, determining the module having the overlap with the module X as a blocking module; restoring the module X to the original position before swapping locations with the blocking module; determining whether or not all other modules apart from the module X and the blocking module can be properly placed; if yes, terminating the process; otherwise, executing step C; C. determining whether or not the module X can continue to move along the direction of movement; if not, terminating the process; otherwise, moving the module X by one unit; determining whether or not all other modules apart from the module X can be properly placed; if yes, terminating the process; otherwise, repeat step C. Employment of the solution provided in the present invention allows for an improved success rate for the movement of the image object. |
主权项 |
1. A method of moving a graphic object on a display screen of a mobile terminal, comprising:
A. determining, by the mobile terminal, a module X and a movement direction corresponding to a graphic object to be moved; B. moving, by the mobile terminal, the module X by one unit in the movement direction, determining whether the module X overlaps with another module, and if they do not overlap, then determining a post-movement status as a movement result and ending a process of the method; or if they overlap, then determining the another module overlapping with the module X as an obstructive module, resuming in location the module X and then exchanging in location the module X with the obstructive module, and determining whether all the other modules than the module X and the obstructive module can be placed properly, and if they can be placed properly, then determining a post-placement status as a movement result and ending the process; or if they cannot be placed properly, then performing a step C; and C. determining, by the mobile terminal, whether the module X can be further moved in the movement direction, and if it cannot be further moved, then indicating that the movement fails and ending the process; or if it can be further moved, then moving the module X by one unit in the movement direction, and determining whether all the other modules than the module X can be placed properly, and if they can be placed properly, then determining a post-placement status as a movement result and ending the process; or if they cannot be placed properly, then repeating the step C. |