# Recognizing a piece in a zone

**URL:** <https://forum.vassalengine.org/t/recognizing-a-piece-in-a-zone/2815>\
**Category:** Module Design\
**Created:** [February 19, 2010, 3:33pm UTC](https://forum.vassalengine.org/t/recognizing-a-piece-in-a-zone/2815 "2010-02-19T15:33:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrNostromo](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/drnostromo/32/12593_2.png) [@DrNostromo](https://forum.vassalengine.org/u/DrNostromo)\
**Post date:** [February 19, 2010, 3:33pm UTC](https://forum.vassalengine.org/t/recognizing-a-piece-in-a-zone/2815/1 "2010-02-19T15:33:19Z")

</div>

Quick question.

When is a piece considered to be in a zone on a map? …is it when the center point of the piece is in the zone? …or if any part of the piece is in a zone - like a corner of the piece?

Thanx!

---

<div class="post-metadata">

**Author:** ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)\
**Post date:** [February 19, 2010, 9:17pm UTC](https://forum.vassalengine.org/t/recognizing-a-piece-in-a-zone/2815/2 "2010-02-19T21:17:01Z")

</div>

When the current location ($CurrentX$, $CurrentY$) falls within the zone. In most cases, this will be when the centre of the piece is in the zone.

B.

\*\*\*\*\*\*\*\*\*\*\* REPLY SEPARATOR \*\*\*\*\*\*\*\*\*\*\*

On 19/02/2010 at 7:33 AM Dr\_Nostromo wrote:

> [@](#):
>
> Quick question.
> 
> When is a piece considered to be in a zone on a map? …is it when the  
> center point of the piece is in the zone? …or if any part of the piece  
> is in a zone - like a corner of the piece?
> 
> Thanx!

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org)  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))

---

<div class="post-metadata">

**Author:** ![DrNostromo](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/drnostromo/32/12593_2.png) [@DrNostromo](https://forum.vassalengine.org/u/DrNostromo)\
**Post date:** [February 20, 2010, 3:29am UTC](https://forum.vassalengine.org/t/recognizing-a-piece-in-a-zone/2815/3 "2010-02-20T03:29:44Z")

</div>

That’s perfect. I was concerned about corners or edges getting picked up as being in the zone. Now I don’t have to worry about that.

Thanx!
