Comments (1)
Even though a copy constructor isn't defined in CommandList, there's going to be a default copy constructor provided by C++ that would invoke a copy of the deque member variable.
The reason why the TurnData makes a copy of the CommandList is because the input manager has only one CommandList that is reused for every turn. But all of the previous turn data is saved, so if the code didn't make a copy that would be lost.
from multiplayerbook.
Related Issues (20)
- Multi-platform CMake or Makefile HOT 2
- ch3 p73: mac sockaddr size variable name HOT 1
- InputMemoryBitStream::CopyConstructor: Incorrect byteCount HOT 2
- Missing listen call? HOT 1
- No default Port
- If the client maliciously manipulate the input DeltaTime, won't it skew the simulation? (Speed hack) HOT 1
- Unintentionally committed files
- Education Material HOT 2
- Missing Assets HOT 2
- 运行不起来
- RobocatRTS Lockstep algorithm bug when mTurnNumber=0
- Updating for VS2019 or newer HOT 2
- How do we use/set up the Chapter 13 Node.js examples HOT 1
- SocketUtil::Select error? HOT 1
- dyld: Library not loaded: @executable_path/libSDL2_ttf-2.0.0.dylib HOT 1
- use of undeclared identifier 'close' / 'select' HOT 1
- PowerPoint slides and sample syllabus? HOT 4
- Hello, I have a question in Chapter 6 RoboCatRTS again. HOT 1
- Hello I have some questions about float synchronization in RoboCatRTS project. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiplayerbook.