[NetBehaviour] trigger_happy2.3i

james jwm-art net james at jwm-art.net
Mon Dec 24 01:24:42 CET 2007


const bool trigger_happy = true;

srand(time());

attitude* get_current(){ return current; }
attitude* goto_prev(){
    return current = (attitude*)(item = item->get_prev())->get_data();
}
attitude* goto_next(){
    return current = (attitude*)(item = item->get_next())->get_data();
}

if (*in_trig == ON)
    if (!goto_next()) goto_head();

public:
attitude::attitude(bool something): traits(rand() & rand()), thething(0)
{
    if(something) thething = new thing;
}

attitude::~attitude()
{
    delete thething;
}

for(int i = 0; i < 10;) attitude[i++] = new attitude(trigger_happy);

run();

g++ thefile.cc -o theprogram
/theprogram

http://www.jwm-art.net/art/audio/trigger_happy2.3i.mp3




More information about the NetBehaviour mailing list