此函数可用于返回路径是否被标记为关闭 (true) 或打开 (false),即路径是否循环或者是否有明确的开始和结束。
新创建的路径默认是关闭的 (true)。
path_get_closed(index);
Boolean
state = path_get_closed(pth_Patrol);
这将根据在"pth_Patrol"中索引的路径的关闭状态,将"state"设置为true或false。