[Kde-games-devel] kblocks: separate the game logic and the display logic?

Dapeng Zhang zhangd at informatik.uni-freiburg.de
Mon Oct 26 18:38:16 CET 2009


hi,

I noticed that google requires to login. Sorry.

Here is the document

http://allheim.informatik.uni-freiburg.de/~zhangd/KBlocks_newDesign.pdf

cheers

dapeng


Dapeng Zhang wrote:
> Hi Mauricio,
>
> We created a google document for the design.
>
> http://docs.google.com/Doc?docid=0ARNiC8-1Cr5UZGc5cGdmbTNfM2R3NDdtaGc2&hl=de
>
> Actually, we did not touch the QGV framework.
>
> The basic idea is to separate "game" and "GUI". A set of classes are 
> created for preparing data for the display. Consequently, the "GUI" 
> classes will be only for displaying something.
>
> If you think the proposal is fine, we will go on for the next step. The 
> goal is to have a single game according to the design. There will be 
> something new in svn this time.
>
> regards
>
> dapeng
>
> Mauricio Piacentini wrote:
>   
>> On Thu, Oct 8, 2009 at 10:25 AM, Dapeng Zhang
>> <zhangd at informatik.uni-freiburg.de> wrote:
>>
>>   
>>     
>>> In past a few days, we analyzed the source code of KBlocks. Here is the
>>> "class diagram" in UML (the screen shot of "dia").
>>>
>>> http://allheim.informatik.uni-freiburg.de/~zhangd/KBlocks.png
>>>
>>> We found that the game logic and display logic are mixed together. For
>>> example, KBlocksScene is such a class.
>>>
>>> In order to develop the two-player mode, I wonder if we could first
>>> isolate the game logic, which will result in some significant changes on
>>> the class view. If it is acceptable, I will send the proposed class
>>> diagram in next a few days.
>>>
>>> What do you think?
>>>     
>>>       
>> Hey, very cool. Please go for it. I am interested in your proposal to
>> isolate this inside the QGV framework, could be something useful in
>> the future for other games and projects.
>>
>> Regards,
>> Mauricio Piacentini
>> _______________________________________________
>> kde-games-devel mailing list
>> kde-games-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/kde-games-devel
>>   
>>     
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
>   



More information about the kde-games-devel mailing list