hi, all
if we change the structure of hangman example like the following, will that
be ok?

---------- model (includes private or protected members, get and set
methods)
    |    |-- User
    |    |-- Score
    |    |-- ...
    |
    |------ utils
    |    |-- db
    |    |    |-- DBBase (includes common sql operations such as connect,
update, insert, etc)
    |    |    |-- UserQuery (includes get a User or a vector of User info by
select from db)
    |    |    |-- ScoreQuery (includes get a Score or a vector of Score info
by select from db)
    |    |    |-- ...
    |    |
    |    |-- other utils
    |
    |---- action (some actions, maybe all are static)
    |    |-- UserAction (includes addUser, validLogin, etc)
    |    |-- ScoreAction (includes getHighScores, getUserPosition,
addToScore etc)
    |    |-- ...
    |
    |---- widgets (all the pure widgets)
    |    |-- Login
    |    |-- HangmanGame
    |    |-- HighScores
    |    |-- Hangman
    |    |-- ...

Regards
zhimin
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to