typedef std::deque<Line> Lines;
private:
Lines m_lines;
+ bool m_favorite = false;
+ bool m_hilight = false;
public:
GVOShipRoute();
return m_lines;
}
+ bool isFavorite() const
+ {
+ return m_favorite;
+ }
+
+ void setFavorite( bool favorite )
+ {
+ m_favorite = favorite;
+ }
+
+ bool isHilight() const
+ {
+ return m_hilight;
+ }
+
+ void setHilight( bool hilight )
+ {
+ m_hilight = hilight;
+ }
+
+ //!@brief srcRoute\82Ì\95Û\8e\9d\82·\82é\8dq\98H\82ð\91S\82Ä\91O\82É\98A\8c\8b\82·\82é\81B
+ void jointPreviousLinesWithRoute( const GVOShipRoute & srcRoute );
+
+ bool isEmptyRoute() const
+ {
+ if ( m_lines.empty() ) {
+ return true;
+ }
+
+ // \82P\82Â\82Å\82à\93_\82ð\95Û\8e\9d\82µ\82Ä\82¢\82ê\82Î\8bó\8dq\98H\82Å\82Í\82È\82¢\82Æ\94»\92f\82·\82é
+ for ( auto line : m_lines ) {
+ if ( !line.empty() ) {
+ return false;
+ }
+ }
+ return true;
+ }
private:
};