Jump to content


Strictly Techies Only


  • You cannot reply to this topic
4 replies to this topic

#1 Fourgeeā„¢

    Administrator & Code Entomologist

  • Administrators
  • PipPipPipPipPipPip
  • 1,249 posts

Posted 21 December 2009 - 10:48 AM

It's probably not likely to be used (maybe next decade) but the capability is there so I thought I might as well post on the off chance. We have an API in place if there are any local websites or organisations who are ahead of the curve as far as the Internet goes and want to use it.

PM for more info. Methods exist for posting new topics, registering users, sending PMs and a lot more besides.

#2 threegee

    Senior Bedlingtonian

  • Administrators
  • PipPipPipPipPipPip
  • 1,751 posts

Posted 21 December 2009 - 04:12 PM

Is there an order_a_pizza method yet? Posted Image

Suggested prototype:

yumminess order_pizza( pizzType,  pizzSize,  pizzTopping, delAddr); 


Just starting work on a fist draft of htpdl: -- Hypertext Pizza Description Language Posted Image

#3 Andy Brown

    Terrier

  • Members
  • PipPipPip
  • 150 posts

Posted 21 December 2009 - 08:42 PM

View Postthreegee, on 21 December 2009 - 04:12 PM, said:

Is there an order_a_pizza method yet? Posted Image

Suggested prototype:

yumminess order_pizza( pizzType, pizzSize, pizzTopping, delAddr); 


Just starting work on a fist draft of htpdl: -- Hypertext Pizza Description Language Posted Image

Hmm would need an entry for TTD (Time_to_delivery) most times are quoted as 45mins to an hour, any deviation from this may upset the function :)
Andy

#4 threegee

    Senior Bedlingtonian

  • Administrators
  • PipPipPipPipPipPip
  • 1,751 posts

Posted 21 December 2009 - 10:33 PM

View PostAndy Brown, on 21 December 2009 - 08:42 PM, said:

Hmm would need an entry for TTD (Time_to_delivery) most times are quoted as 45mins to an hour, any deviation from this may upset the function Posted Image

// Sample code only, needs exception handlers

ttd order_pizza( char* delAddr, enum pizzType, int pizzSize=8, int pizzTopping=NONE );

if (order_pizza( dadd, ptyp, psiz, ptop) > 45) {
    	cancel_pizza();
    	order_fishnchips( dadd);
    	post_message( "The Bedlington Consumer", "Slow Service!", comptxt*);
}
else post_message( "The Bedlington Consumer", "Good Service!", praisetxt*);
while (eating) {
    	poll_chat();
}


#5 Andy Brown

    Terrier

  • Members
  • PipPipPip
  • 150 posts

Posted 22 December 2009 - 06:38 AM

View Postthreegee, on 21 December 2009 - 10:33 PM, said:

// Sample code only, needs exception handlers

ttd order_pizza( char* delAddr, enum pizzType, int pizzSize=8, int pizzTopping=NONE );

if (order_pizza( dadd, ptyp, psiz, ptop) > 45) {
 	cancel_pizza();
 	order_fishnchips( dadd);
 	post_message( "The Bedlington Consumer", "Slow Service!", comptxt*);
}
else post_message( "The Bedlington Consumer", "Good Service!", praisetxt*);
while (eating) {
 	poll_chat();
}

Ha ha, show off
Andy





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users