Problems with characteristics
Moderators: silly freak, CCGHQ Admins
Problems with characteristics
by silly freak » 11 Sep 2010, 18:05
I tried to implement painting of assigned (during combat) and marked damage today, but faced strange errors.
It seems that the automatic refreshing of the characteristics (for applying static abilities) breaks when characteristics are accessed from the GUI, because of the Edits produced during the refresh; As I said earlier, the GUI must not modify the game state.
I think that a restructuring of characteristics is necessary to resolve this; my idea is regularly refreshing all characteristics, and skipping the refresh on the individual requests
It seems that the automatic refreshing of the characteristics (for applying static abilities) breaks when characteristics are accessed from the GUI, because of the Edits produced during the refresh; As I said earlier, the GUI must not modify the game state.
I think that a restructuring of characteristics is necessary to resolve this; my idea is regularly refreshing all characteristics, and skipping the refresh on the individual requests
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: Problems with characteristics
by nantuko84 » 12 Sep 2010, 06:39
Hi,
could you please describe what happens in more detail? does really GUI change properties back somehow? or did you write about the possibility to do so.
>my idea is regularly refreshing all characteristics, and skipping the refresh on the individual requests
what if there will be a class that collects all such changes inside engine using the same properties, and then later will send them at once, e.g. at the end of every action.
could you please describe what happens in more detail? does really GUI change properties back somehow? or did you write about the possibility to do so.
>my idea is regularly refreshing all characteristics, and skipping the refresh on the individual requests
what if there will be a class that collects all such changes inside engine using the same properties, and then later will send them at once, e.g. at the end of every action.
Mage\MagicWars blog: http://mwars.blogspot.com/
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest