Tutorials to .com

Tutorials to .com » Dotnet » Oop » The birth of a poker game --- (fullhouse) category on the process of design and debugging, error correction and the use of assertion (I)

The birth of a poker game --- (fullhouse) category on the process of design and debugging, error correction and the use of assertion (I)

Print View , by: iSee ,Total views: 15 ,Word Count: 919 ,Date: Tue, 21 Apr 2009 Time: 6:19 PM

The birth of a poker game --- (fullhouse) category on the process of design and debugging, error correction and the use of assertion

In front of our basic work done, now to be considered to design the games. Although some people criticize me in front of the uml bad picture, but I still use this type of rose to complement the design, Oh, it is hardened. The following are the game's use case diagram, can be seen from the game to complete the function of



The following is the order of the process of game plan, we hope to find out the types of properties and methods.



As we now need to complete the games (Fullhouse) design, we do not care about gamers and interface, look at the back of Fullhouse What type of properties and methods. The following is a rose-generated forms on this category.
Class game system (Java)
Documentation
Types of gaming systems

Parent Package Business Use-Case Model Abstract No
Export Control PublicAccess Link Class for None
Class Kind NormalClass Cardinality n
Space Concurrency Sequential
Persistence No


Operations
Name Signature Class
new new (initial scores)) Game System
Bet Bets () Game System
The renewal of licenses Renewal of license (the license to change)) Game System
Calculation of scores Calculation of Score () Game System
Than the times Than the times () Game System
Score Score () Game System
Reset state Reset state () Game System


Attributes
Name Class Type Initial Value
Total Game System
Score Game System
Bet Score Game System
Brand portfolio Game System


Approval of the plans and forms, we now do this kind of class diagram should be very easy for you. The following is a class diagram:


Several of the properties and methods rather than through the method above to find out, but in the actual code required to add process. Well, type design done, the task is behind the coding.


.Net Object Oriented Programming Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.