12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef SCRIPTS_H
- #define SCRIPTS_H
- #include "buysell.h"
- #include "dispatchers.h"
- #include "galaxy.h"
- class ScriptTrader : public Dispatch {
- private:
- public:
- ScriptTrader(Director &);
- ~ScriptTrader();
- char foe[4] = "foe";
- bool trade_end_empty;
-
- int state;
- float percent;
- bool buying;
- int initial_offer;
- int last_offer;
- int final_offer;
- int product;
- int stop_percent;
-
- int active_port;
-
- int port[2];
- int active;
- int type;
- buysell trades;
- buysell port_buysell[2];
- void activate(void) override;
- void deactivate(void) override;
-
- void server_line(const std::string &line,
- const std::string &raw_line) override;
- void server_prompt(const std::string &prompt) override;
- void client_input(const std::string &cinput) override;
- };
- #endif
|