Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Point WorldToMapCell(Point worldPoint)
- {
- return WorldToMapCell(new Point((int)worldPoint.X, (int)worldPoint.Y));
- }
- public MapCell GetCellAtWorldPoint(Point worldPoint)
- {
- Point mapPoint = WorldToMapCell(worldPoint);
- return Rows[mapPoint.Y].Columns[mapPoint.X];
- }
- public MapCell GetCellAtWorldPoint(Vector2 worldPoint)
- {
- return GetCellAtWorldPoint(new Point((int)worldPoint.X, (int)worldPoint.Y));
- }
- public int factorial(int x) {
- if (x == 0)
- return 1;
- else
- return x * factorial(x - 1);
- public Point WorldToMapCell(Point worldPoint)
- {
- return WorldToMapCell(new Point((int)worldPoint.X, (int)worldPoint.Y));
- }
- public Point WorldToMapCell(Point worldPoint)
- {
- return new Point((int)worldPoint.X, (int)worldPoint.Y);
- }
Add Comment
Please, Sign In to add comment