Create account / Log in

Ability for players to view board from different sides?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Ability for players to view board from different sides?

Postby cburke » October 20th, 2013, 4:46 pm

Does Vassal support the ability for players to *view* the board from different sides? I'm new to Vassal - but wanted to ask before I began a module project. A simple example would be two players playing chess and each seeing the board from their own side.

Thanks,

-C
cburke
 
Posts: 3
Joined: October 20th, 2013, 4:42 pm

Re: Ability for players to view board from different sides?

Postby uckelman » October 21st, 2013, 10:42 am

Thus spake cburke:
> Does Vassal support the ability for players to *view* the board from
> different sides? I'm new to Vassal - but wanted to ask before I began a
> module project. A simple example would be two players playing chess and
> each seeing the board from their own side.
>

That depends on what you mean by "view from your own side". If what
you want is to have the board oriented with your pieces at the bottom
and your opponent's at the top, then the answer is: VASSAL 3 isn't
able to do that as-is, but you could write a custom class to do it.
VASSAL 4 will be able to do that without any custom code, since maps
will be arbitrarily rotatable.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ability for players to view board from different sides?

Postby cburke » October 26th, 2013, 3:16 pm

Ok - thank you. If I were to go the custom class route, is there a particular class I'd be replacing, method I'd be overriding, or interface I'd be implementing?

Thanks,

-C
cburke
 
Posts: 3
Joined: October 20th, 2013, 4:42 pm

Re: Ability for players to view board from different sides?

Postby uckelman » October 26th, 2013, 3:59 pm

Thus spake cburke:
> Ok - thank you. If I were to go the custom class route, is there a
> particular class I'd be replacing, method I'd be overriding, or
> interface I'd be implementing?

You'd need to subclass at least one of Map and Board, and override
one of their draw() methods.


--
J.
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ability for players to view board from different sides?

Postby cburke » October 27th, 2013, 8:21 pm

Perfect, thank you that should get me started.

-C
cburke
 
Posts: 3
Joined: October 20th, 2013, 4:42 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest