auto_bus/include/PosPair.h

81 lines
1.3 KiB
C
Raw Normal View History

//
// Created by ricardo on 2022/6/28.
//
#ifndef AUTO_BUS_GUI_POSPAIR_H
#define AUTO_BUS_GUI_POSPAIR_H
/**
*
*/
class PosPair{
public:
2022-07-04 17:09:22 +08:00
/**
* x
*/
static const int stop_begin_x = 100;
/**
* y
*/
static const int stop_begin_y = 80;
/**
*
*/
static const int stop_rail_width = 300;
/**
*
*/
static const int stop_rail_height = 200;
/*
* x坐标
*/
int pos_x;
/**
* y坐标
*/
int pos_y;
PosPair();
2022-06-29 17:25:33 +08:00
/**
*
* @param stop_number
* @return
*/
static int GetStopSpaceLength(int stop_number) ;
/**
*
* @param length
*/
void AddLength(int length);
/**
* x坐标
* @return
*/
int GetBusPosX() const;
/**
* y坐标
* @return
*/
int GetBusPosY() const;
private:
2022-06-29 17:25:33 +08:00
/**
*
*/
const int stop_bus_distance = 30;
int distance = 0;
};
#endif //AUTO_BUS_GUI_POSPAIR_H