It is currently 19 Nov 2017, 15:45
   
Text Size

Problems with characteristics

Moderators: silly freak, CCGHQ Admins

Problems with characteristics

Postby 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
___

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: 585
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 85 times
Been thanked: 19 times

Re: Problems with characteristics

Postby 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.
Mage\MagicWars blog: http://mwars.blogspot.com/
nantuko84
DEVELOPER
 
Posts: 266
Joined: 08 Feb 2009, 21:14
Has thanked: 2 times
Been thanked: 9 times


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form