X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Feng_core.cpp;h=853e64cc60419efa032766958dd4c41f6a91ff08;hb=ef18524eeb1d90569410f3660f8a7c7a7defdf1d;hp=2bfb4ca153c7cb0e4a053d8a3c2c331b8475fb6b;hpb=053d2be9c2c5877ebc13a6b2e9afeb0c8359e1f0;p=16.git diff --git a/src/eng_core.cpp b/src/eng_core.cpp index 2bfb4ca1..853e64cc 100644 --- a/src/eng_core.cpp +++ b/src/eng_core.cpp @@ -24,7 +24,7 @@ namespace engine{ this->frames_per_second = 60; // Global Variables - this->bing = 4; // test global variable + this->mode = 4; // test global variable this->x = 0; // X this->y = 0; // Y @@ -36,10 +36,14 @@ namespace engine{ } void Core::update() - { + { + /*for (std::list::iterator i = fp->begin(); i != fp->end(); i++) + //for (std::list::iterator i = this->fp.begin(); i != this->fp.end(); i++) + { + (this->*(*i))(); + }*/ // call update functions, instead of traversing a function pointer // list. Remove this comment! - sound(); if ( graphics_flag ) graphics(); @@ -108,8 +112,8 @@ namespace engine{ bool Core::init(){ bool xz = 0; // error switch... std::cout << "VIDEO INITIATION" << std::endl; - setvideo(0x13, 1); - setvbuff(1); +//____working on mode x setvideo(0x13, 1); +//____working on mode x setvbuff(1); std::cout << "Checking for Adlib sound card...." << std::endl; if(!AdlibExists()){ std::cout << "not found." << std::endl; @@ -122,8 +126,8 @@ namespace engine{ std::cout << "1 - 9 for graphical tests!" << std::endl; std::cout << "space bar for control and sprite test!" << std::endl; std::cout << "z key for noise!" << std::endl; - std::cout << "Press press any key to continue!" << std::endl; - getch(); + //std::cout << "Press press any key to continue!" << std::endl; + //getch(); std::cout << "INPUT INITIATION" << std::endl; setkb(1); std::cout << "INITIATION" << std::endl; @@ -133,8 +137,8 @@ namespace engine{ void Core::release() { //release contexts and set engine to exit - setvideo(0x03, 0); - setvbuff(0); +//____working on mode x setvideo(0x03, 0); +//____working on mode x setvbuff(0); setkb(0); FMReset(); this->msg = ENGINE_EXIT; @@ -167,7 +171,8 @@ namespace engine{ //int a;std::cin >> a; graphics_flag = true; this->timer.start_timer(); -//==== std::cout << "GRAPHICS GRAPHICS GRAPHICS GRAPHICS GRAPHICS" << std::endl; +//==== std::cout << "GRAPHICS GRAPHICS GRAPHICS GRAPHICS GRAPHICS" << std::endl; +//____ updatevbuff(); } else {