public int getCollision(int index)
	{
		if (index == -1)
			return COLLISION_NONE;

		switch (map[index])
		{
			case 1:	// solid
				return COLLISION_SOLID;
			case 2:	// platform
				return COLLISION_PLATFORM;
			case 3:	// damage
				return COLLISION_DAMAGE;
			case 4:	// destructible block
				return COLLISION_DESTRUCTIBLE | COLLISION_SOLID;
			case 5:	// middle of the ladder
				return COLLISION_CLIMB;
			case 6:	// top of the ladder
				return COLLISION_CLIMB | COLLISION_PLATFORM;
			case 7:	// hidden block
				return COLLISION_HIDDEN;

			default:
				return COLLISION_NONE;
		}
	}