It is currently 16 Apr 2024, 21:23
   
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: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 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 6 guests


Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 6 guests

Login Form