File: BotTree.hpp

package info (click to toggle)
mrboom 5.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 34,372 kB
  • sloc: cpp: 106,150; ansic: 59,845; makefile: 1,033; python: 322; asm: 125; xml: 60; sh: 1
file content (18 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "bt.hpp"
#include "Bot.hpp"
#define MEM_STREAM_BUFFER_SIZE    64000
class BotTree : public Bot {
public:
   BotTree(int playerIndex);
   size_t serialize_size(void);
   bool serialize(void *data_);
   bool unserialize(const void *data_);
   void updateGrids();
   void tick();

private:
   bt::BehaviorTree *tree;
#ifndef ONLY_LOCAL
   uint8_t buffer[MEM_STREAM_BUFFER_SIZE];
#endif
};