Container::Container(Vector2f pos, float rot, std::vector<Item*>* i, int t) : m_pos(pos), rotation(rot), items(i) { type = t; open = false; invCols = 4; invRows = 5; invSize = 20; LoadAssets(); SetupSlots(); GenerateItems(); createBox2dBody(); }
void CG2Node::connectToHost(IPv4_ENDPOINT oAddress) { m_nState = nsConnecting; CNetworkConnection::connectToHost(oAddress); SetupSlots(); }