Esempio n. 1
0
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();
}
Esempio n. 2
0
void CG2Node::connectToHost(IPv4_ENDPOINT oAddress)
{
    m_nState = nsConnecting;
    CNetworkConnection::connectToHost(oAddress);
    SetupSlots();
}