[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] kspaceduel: porting to Graphics View
From: "Dmitry Suzdalev" <dimsuz () gmail ! com>
Date: 2006-12-29 9:53:22
Message-ID: 7aa876c10612290153g53170c04l7824449fd0710a50 () mail ! gmail ! com
[Download RAW message or body]
2006/12/29, Dirk <dirkrathlev@gmx.de>:
> Hmm, BulletSprite already has a type() function. It returns S_BULLET and
> is used in collision detection. As S_BULLET is unique, I think I don't
> have to change anything. But is this good style, using type() for
> gameplay issues?
Returning S_BULLET is ok as long as it is larger than
QGraphicsItem::UserType (65535) as stated in docs. If it is less you
may run into trouble once :-).
And I think that using type for your purposes is perfectly ok.
> At least it works.
That doesn't mean it can't break some day if you use it incorrectly now ;-).
Cheers,
Dmitry.
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic