Hi Cory,

Bit hard to guess at what has gone wrong, but do what I always do - find 
another class that does something similiar to what you want and hack it.

Have a look at HighlightLastMoved. It is probably the simplest Drawable 
implementation. The MapShader and CounterDetailViewer are more complex.

Cheers,
Brent.




>*********** REPLY SEPARATOR ***********
>
>On 28/09/2006 at 7:58 PM cory_c70 wrote:
>Ok excellent, i do indeed have old source code (fixed now).
>
>I am struggling with Drawable's now. Can i simply create an object 
>that implements Drawable and add it straight to any Map object (via 
>addDrawComponent), or is there more to it? 
>
>I'm not having any luck getting my Drawable to draw. Basically i'm 
>failing when the Map invokes it drawDrawable method!
>
>java.lang.AbstractMethodError
>at VASSAL.build.module.Map.drawDrawable(Unknown Source)
>at VASSAL.build.module.Map.paintRegion(Unknown Source)
>at VASSAL.build.module.Map$View.paint(Unknown Source)
>
>again the help is much appreciated!
>
>Cory
>
>--- In [email protected], "Brent Easton" <[EMAIL PROTECTED]> 
>wrote:
>>
>> Cory,
>> 
>> You don't have the latest version of the source, you should 
>synchonize your copy with the repository.
>> 
>> If you are not already using Eclipse with the CVS Repository 
>explorer, you should get this set up. See the vassalengine 
>Documentation pages for details.
>> 
>> Regards,
>> Brent.
>> 
>> 
>> >*********** REPLY SEPARATOR ***********
>> >
>> >On 27/09/2006 at 11:46 PM cory_c70 wrote:
>> >Thanks for the assistance!
>> >
>> >The Map class doesn't seem to have a getAllMaps(), do you mean
>> >Map.getView() maybe?
>> >
>> >So if the class in my extension file extends Map, it should return 
>the
>> >parent map in the addTo?
>> >
>> >--- In [email protected], "Brent Easton" <b.easton@> 
>wrote:
>> >
>> >> Map.getAllMaps() gets you access to all maps. 
>> >> 
>> >> If your object is a child of a map, then the parent map is 
>passed to
>> >you inthe addTo(Buildable parent) routine, so just save it away.
>> >> 
>> 
>> 
>> __________________________________________________________
>> Brent Easton 
>> Analyst/Programmer 
>> University of Western Sydney 
>> Email: [EMAIL PROTECTED]
>>

____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vassalengine/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/vassalengine/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to