Summary of the invention
In view of this, the invention provides a kind of data processing method, thereby to realize realizing that by the data of chess-plate system are handled many people can know the purpose of watching recreation, its scheme is as described below:
A kind of data processing method is applied to the chess game data handling system, and described system comprises: chess piece is provided with the attribute information that can read in the described chess piece; A plurality of chessboards unit is provided with the chessboard attribute information that can read in the described chessboard unit; This method comprises:
Read the attribute information of chess piece and the attribute information of chessboard unit, chess piece place;
Converting attribute information to control signal sends;
According to the corresponding relation of predefined control signal and animation mode, show the animation mode of the control signal correspondence that receives.
Preferably, the described chess piece attribute information that reads comprises: the camp's information under the chess piece and the Role Information of chess piece;
The attribute information of the described chessboard unit, chess piece place that reads comprises: the terrain information of described chessboard unit and the described chessboard unit relative position information on chessboard.
Preferably, the described process that converts attribute information to control signal is specially:
Whether camp's attribute of judging the chess piece on the chessboard unit with same terrain information is identical, according to different judged results, converts different control signals to.
Preferably, the attribute information of described chess piece also comprises: the fighting capacity attribute.
Preferably, the described process that converts attribute information to control signal is specially:
According to the fighting capacity attribute of the more adjacent chess piece of preset rules, the process that converts different control signals according to comparative result to is:
When described judged result be chess piece camp attribute not simultaneously, relatively the fighting capacity property value of chess piece converts corresponding victory or defeat control signal to according to result relatively.
Preferably, also comprise the control signal that converts modification chess piece fighting capacity property value according to result relatively to.
From such scheme as can be seen, the disclosed data processing method that is applied to games system of the embodiment of the invention, be converted to control signal with reading the attribute information of chess piece and the attribute information of chessboard, and it is shown on its interface according to the corresponding relation of control signal and animation mode, solve the person's of watching number and can't see the problem of game process clearly more for a long time, and made game process have interest more.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The invention provides a kind of data processing method that is applied to the chess game data handling system, this system comprises: chess piece is provided with the attribute information that can read in the described chess piece; A plurality of chessboards unit, be provided with the chessboard attribute information that can read in the described chessboard unit, data processing method disclosed by the invention, to read to such an extent that the attribute information of chess piece and corresponding chessboard unit is converted to control signal, corresponding relation according to control signal and animation mode dynamically shows, solved the problem that can't see game process when the person's of watching number more for a long time clearly, and dynamic process of showing recreation, make recreation have interest more.The embodiment of this method is:
Embodiment one
Present embodiment is disclosed be applied to the chess game data handling system data processing method flow process as shown in Figure 1, comprising:
The attribute information of step S11, the attribute information that reads chess piece and chessboard unit, chess piece place;
The chessboard unit reads the attribute information of chess piece placed thereon, generally include camp's information of chess piece, Role Information etc., concrete property content is decided according to the type of recreation, for example in common chess game, the attribute information of chess piece is camp's information, promptly be red or black, if a digital war chess recreation, the property value of chess piece also comprises so: fighting capacity, defence capability, magic grade, lucky value, with vitality etc., and the attribute of its Role Information is also more various, can comprise multiple character, as rank, heavy first soldier, the armor soldier, the flying dragon knight, the toxotae, the hackbuteer, Master, ancient times giant dragon, savage etc.The attribute information of chessboard unit comprises the terrain information of chessboard unit, concrete terrain information is determined according to different recreation, for example in chess game, what terrain information was represented is red camp or black camp, if the recreation of digital war chess, the terrain information representative is high mountain, river, village, castle, forest etc. so.In addition, also comprise the relative position information of place, chessboard unit chessboard in the attribute information of chessboard unit,, the player can be observed intuitively so that the digital received platform shows the layout correspondence of chessboard.
Step S12, convert attribute information to control signal and send;
Attribute information according to above-mentioned steps converts control signal to, the detailed process of conversion and the control signal type of conversion are according to different game settings, if chess game, Role Information according to relation of the position between chess piece and chess piece is judged who wins and who loses, produces the control signal of corresponding triumph or failure then.If the recreation of digital war chess, its criterion has a variety ofly so, can judge according to other attributes of chess piece, and the process of judging is converted to the control signal of fight, shows.
Step S13, according to the corresponding relation of predefined control signal and animation mode, show the animation mode of the control signal correspondence that receives.
Store the animation mode corresponding in the digital received platform in advance with control signal, after receiving control signal, as the signal of fighting, just that it is corresponding chess piece both sides' fight animation mode is presented on the interface, makes that the player can the vivid process of observing recreation.
Embodiment two
Present embodiment is disclosed be applied to games system data processing method flow process as shown in Figure 2, comprising:
Step S21, read the camp's attribute and the role attribute of chess piece and the attribute information of chessboard unit, chess piece place;
Step S22, judge whether camp's attribute of the chess piece on the chessboard unit with same terrain information is identical, if identical then execution in step S231, if then execution in step S232 inequality;
Step S231, judged result is converted to the role's of chess piece correspondence progress signal;
Step S241, according to the corresponding relation of predefined control signal and animation mode, show the role's of the control signal correspondence of advancing that receives the animation mode that advances;
Step S232, judged result is converted to the role's of chess piece correspondence fight signal;
Step S242, according to the corresponding relation of predefined control signal and animation mode, show the role's of the fight control signal correspondence that receives fight animation mode.
Data handling procedure after chess piece is placed on the beginning of playing on the chessboard is disclosed in the present embodiment, to judge at first in recreation whether chess piece is same camp, if same camp, so then convert thereof into progress signal, after the digital received platform will receive this signal, the animation mode that the soldier in the same camp of its correspondence is advanced shoulder to shoulder displays, and also can convert the scene that the same soldier of camp sits on the ground and has a rest to.If different camps so then becomes this information translation the fight signal, after the digital received platform received this signal, the soldier who converts thereof into different camps was waving the scene that weapons are fought.When recreation during for common chess game, it is the soldier who wears the different colours fighting clothes that the fight between the soldier converts animation mode to, uses instruments such as cutter, sword to fight, and when the role attribute of chess piece is horse, demonstration be the scene that battle steed gallops.When recreation is played for the digital war of desktop chess, because the role of chess piece is more, its scene of fighting is also more, and when its both sides' chess piece role was flying dragon knight and rank, the digital received platform shows was that the rank that wave machete meet head on and play the scene that the battle steed hand is taken the knight of long halberd.For the scene of vivider demonstration fight, can add the picture that the soldier is injured, bleed in its course of battle, make that the war scene is more true to nature.
Embodiment three
Present embodiment is disclosed to be applied to the preceding afterflow journey of data processing method of games system as described in the embodiment two, the attribute of the chess piece in the present embodiment is except camp's attribute and role attribute, also comprise the fighting capacity attribute, when judging to the chess piece of different camps and after showing corresponding role's fight animation mode, its follow-up attribute data treatment scheme comprises as shown in Figure 3:
Fighting capacity property value between step S31, comparison different camps chess piece;
Step S32, convert corresponding victory or defeat control signal to according to relatively result;
Step S33, according to the corresponding relation of predefined control signal and animation mode, show role's victory or defeat animation mode of the victory or defeat control signal correspondence that receives.
Step S34, convert property value to according to relatively result and revise control signal;
Step S35, according to the corresponding relation of predefined control signal and animation mode, show that the property value that receives revises the animation mode that the role's of control signal correspondence property value increases or reduces.
Present embodiment discloses in the process of fighting between the different camps chess piece data handling procedure according to the fighting capacity property determine fight victory or defeat of chess piece.For example in the recreation of the digital war of desktop chess, armor knight's fighting capacity attribute is than rank's fighting capacity attribute height, when the armor knight of different camps and rank fight, its fighting capacity property value of systematic comparison, according to its comparative result, convert corresponding armor knight to and win the control signal that rank win, after the digital received platform receives control signal, can show by the animation mode that it is corresponding, such as, the armor knight gets to picture on ground with rank, and the scene of armor knight triumph back battle steed jubilation, allows the player can experience the happiness of triumph more intuitively.In addition, according to its comparative result, also convert property value accordingly to and revise control signal, the digital received platform will increase process that the fighting capacity property value with rank the reduces form by animation to armor knight's fighting capacity property value and show, can be with the form of its fight property value with numeral, carry out increasing or decreasing intuitively, it also can be form by the numerical value post, the height of cylinder is represented the height of fighting capacity attribute, represent the increase and decrease of property value with the increase of height of column, represent the minimizing of property value with the minimizing of height of column.
The modification control signal that does not limit the chess piece property value of changing according to comparative result in this step is failed the fighting capacity property value of side for the fighting capacity property value and the minimizing that increase win side, the fighting capacity attribute that also can be a side's that property value is higher chess piece remains unchanged, only the attribute of the chess piece that property value is lower reduces, equally, the quantity of minimizing both can be to go forward one by one that to reduce also can be all to make zero.
Embodiment four
Specific in the games system time, the fighting capacity attribute of chess piece can comprise many types, such as the lucky value of the intellectual level of the magic grade of the strength ability of the locomotivity of the defence capability of the vitality of chess piece, chess piece, chess piece, chess piece, chess piece, chess piece, chess piece and the muscle power of chess piece.So concrete comparison procedure also can be different, the idiographic flow of the disclosed comparison procedure of present embodiment comprises as shown in Figure 4:
Step S41, a plurality of attribute type property values in the fighting capacity attribute of the chess piece of different camps are compared, respectively record relatively in property value be higher than the opposing party's number of times;
Step S42, to judge that both sides in the record are higher than the other side's number of times not identical, if inequality then execution in step S43, if identical then execution in step S44;
Step S43, according to the quantity of the higher relatively attribute type of each camp's property value in the comparative result what, convert corresponding victory or defeat control signal to, execution in step S46;
Step S44, calculate the summation that property value in each camp exceeds the other side's property value;
Property value exceeds the summation of the other side's property value in step S45, each camp of comparison, converts corresponding victory or defeat control signal, execution in step S46 to according to comparative result;
Step S46, according to the corresponding relation of predefined control signal and animation mode, show the animation mode of the victory or defeat control signal correspondence that receives.
Present embodiment is disclosed to be to have multiple attribute data when chess piece, generates the process of corresponding control signal according to multiple attribute data.At first relatively property value is higher than the attribute type quantity of the property value of the other side's correspondence, for example the fighting capacity attribute when chess piece comprises: vitality, the defence capability of chess piece, the locomotivity of chess piece, the strength ability of chess piece, the magic grade of chess piece, the intellectual level of chess piece, during the lucky value of chess piece and chess piece physical, the property value of supposing the armor knight that a side fights is respectively: 20,10,12,15,5,6,5,18, and the rank's that the opposing party fights property value is respectively: 8,6,8,5,0,5,4,7 is relatively corresponding with two groups of data, each attribute type value of finding the armor knight all is higher than rank, so its attribute type quantity that is higher than the other side of property value is 8, and the other side is 0, according to this comparative result, convert thereof into corresponding armor knight and win the victory or defeat control signal that rank fail.But, if fight a side and be not the armor knight but the toxotae, its property value is: 8,8,8,4,0,5,4,7, its property value and rank are made comparisons, find that both sides respectively have the value of an attribute type to be higher than the other side, so at this moment, calculate the summation that value that all properties value is higher than the other side's attribute type exceeds the other side's value respectively, numerical value summation with both sides compares then, the summation that the discovery toxotae exceeds the other side's value is 2, and rank exceed the summation of toxotae's value is 1, so, according to result relatively, convert thereof into corresponding toxotae and win the control signal that rank fail, show that then the toxotae shoots rank's animation mode to death.。
Present embodiment has just been enumerated a kind of mode in the data handling procedure, and its concrete comparison principle can be decided according to actual conditions.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.