Пример #1
0
Game::Game()
{
	m_vfs = CL_VirtualFileSystem("addons/system.c2d", true);
	m_vd = CL_VirtualDirectory(m_vfs, "");
	m_running = false;
	m_console = NULL;
}
Пример #2
0
CL_VirtualDirectory CL_VirtualFileSystem::open_directory(const CL_String &path)
{
	return CL_VirtualDirectory(
		*this,
		CL_PathHelp::make_absolute(
			"/",
			path,
			CL_PathHelp::path_type_virtual));
}
Пример #3
0
GameViewBattle::GameViewBattle(GameView *view, Client *client)
: CL_GUIComponent(view), view(view), client(client)
{
	set_type_name("battle");
	set_geometry(CL_Rect(view->get_width() - 400, 0, view->get_width(), 300));
	set_visible(false);

	func_render().set(this, &GameViewBattle::on_render);
	func_process_message().set(this, &GameViewBattle::on_message);

	timer_hide.func_expired().set(this, &GameViewBattle::on_timer_hide_expired);

	CL_Texture texture_dice(get_gc(), "Resources/dices.png", CL_VirtualDirectory());
	CL_SpriteDescription dice_description;
	dice_description.add_gridclipped_frames(texture_dice, 0, 0, 42, 45, 6, 1);
	sprite_dices = CL_Sprite(get_gc(), dice_description);

	font_large = CL_Font(get_gc(), "Accidental Presidency", -40);
	font_small = CL_Font(get_gc(), "Accidental Presidency", -30);
}