public void Update()\r
{\r
//See if something moved onto this projectile.\r
- if(theMap.isOpenSquare(gridX, gridY))\r
+ if(theMap.IsCellOpen(gridX, gridY))\r
{\r
- theMap.damageSquare(gridX, gridY, damage);\r
+ //theMap.damageSquare(gridX, gridY, damage);\r
}\r
//If the projectile will be moving to a new grid position we need to check to see if it is occupied.\r
+ /*\r
if ((int)((pixelX + velocity.X) / theMap.gridToPixelRatio) != gridX || (int)((pixelY + velocity.Y) / Map.gridToPixelRatio) != gridY)\r
{\r
- bool open = theMap.isOpenSquare((pixelX + velocity.X) / theMap.gridToPixelRatio, (pixelY + velocity.Y) / Map.gridToPixelRatio);\r
+ bool open = theMap.IsCellOpen((pixelX + velocity.X) / theMap.gridToPixelRatio, (pixelY + velocity.Y) / Map.gridToPixelRatio);\r
//If open just move this projectile there\r
//***Map doesn't need to know that this projectile is there because players/monsters are allowed\r
// to move into the path of projectiles.\r
//theMap.damageSquare(gridX, gridY, damage);\r
}\r
}\r
+ */\r
//If it is not moving grid positions just increment pixelX and pixelY\r
else\r
{\r