MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsSelected

Method IsSelected

src/network/core/tcp_content.cpp:32–43  ·  view source on GitHub ↗

* Is the state either selected or autoselected? * @return true iff that's the case */

Source from the content-addressed store, hash-verified

30 * @return true iff that's the case
31 */
32bool ContentInfo::IsSelected() const
33{
34 switch (this->state) {
35 case ContentInfo::State::Selected:
36 case ContentInfo::State::Autoselected:
37 case ContentInfo::State::AlreadyHere:
38 return true;
39
40 default:
41 return false;
42 }
43}
44
45/**
46 * Is the information from this content info valid?

Callers 7

Receive_SERVER_INFOMethod · 0.80
UnselectMethod · 0.80
UnselectAllMethod · 0.80
CheckDependencyStateMethod · 0.80
DrawDetailsMethod · 0.80
OnReceiveContentInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected