pp_point.h

来自「一个非常有用的客户端开发程序」· C头文件 代码 · 共 41 行

H
41
字号
#ifndef PP_POINT_H#define PP_POINT_H#include"util/timeutil.h"struct PP_Point {   int x;   int y;   int th;   double cost;   int id; // for bum list   PP_Point* parent;    bool closed;   bool valid;   struct timeval timestamp;   PP_Point(int xp, int yp) {id=-1;x=xp;y=yp;cost=0;th=0; parent=0;closed=false;valid=false;timestamp=getCurrentTime();}   PP_Point() {id=-1;x=0;y=0;th=0;cost=0;parent=0;closed=false;valid=false;timestamp=getCurrentTime();}   bool  operator!=(const PP_Point a){      return a.x!=x || a.y!=y;   }   bool  operator==(const PP_Point a){      return a.x==x && a.y==y;   }};#endif //PP_POINT_H/********************************************************************* * (C) Copyright 2006 Albert Ludwigs University Freiburg *     Institute of Computer Science * * All rights reserved. Use of this software is permitted for * non-commercial research purposes, and it may be copied only * for that use. All copies must include this copyright message. * This software is made available AS IS, and neither the authors * nor the Albert Ludwigs University Freiburg make any warranty * about the software or its performance. *********************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?