eloipuertas / ES2013Dijous

Videojoc del Grup de Dijous d'Enginyeria del Software del Grau en Enginyeria Informàtica de la Universitat de Barcelona
http://eloipuertas.github.io/ES2013Dijous/
Other
6 stars 0 forks source link

Add to npc the capability to query the zone they are #431

Closed GuillermoBlasco closed 10 years ago

GuillermoBlasco commented 10 years ago

To exploit zones and new rearranged paths npcs should be able to query the zone they are so further they can find the possible paths.

Estimated hours: 1

Script: AgentNpc.cs

Method: getZone(int x,int y)

This method query the zone where Npc is, passing X grid position and Y grid position of the Npc as parameters

Testing:

Use a debug.log somewhere (FSMFixedUpdate) Asking for the zone of the npcs executing this method

qfornaguera commented 10 years ago

this task is done ->commit 5b1fa7aab0506fb1dfd6930a1aba088699c2a464

GuillermoBlasco commented 10 years ago

Ok, that has been easy :) well done