How do you cast an integer to building?

From: Nathan Schurr (schurr@usc.edu)
Date: Fri 27 Sep 2002 - 01:29:38 GMT

  • Next message: peyman ansaripour: "(no subject)"

    I am trying to take an input integer building id number and have a fire
    engine travel to that building.

     

    To do this I am using a makeplan function that takes two parameters:
    target (MotionlessObject) and targetbuilding (Building). How would I
    cast an integer to a Building and MotionlessObject (It currently gives
    me an error when I try to cast)? Am I approaching this correctly?

     

    Nathan



    This archive was generated by hypermail 2.1.4 : Fri 27 Sep 2002 - 01:54:21 GMT