home *** CD-ROM | disk | FTP | other *** search
- class Island extends Object
- {
- var weather_num;
- var buildings;
- var people;
- var objects;
- var ground;
- var height_map;
- var low_x;
- var high_x;
- var low_y;
- var high_y;
- function Island()
- {
- super();
- this.weather_num = 1;
- this.buildings = [];
- this.people = [];
- this.objects = [];
- this.ground = 0;
- this.height_map = new flash.display.BitmapData(100,100);
- }
- function addPerson(p_clip, p_x, p_y, p_photo, p_speech, p_descript, p_use_item, p_show_photo)
- {
- this.people[this.people.length] = {clip:p_clip,x:p_x,y:p_y,photo:p_photo,speech:p_speech,descript:p_descript,use_item:p_use_item,show_photo:p_show_photo};
- }
- function addBuilding(p_clip, p_x, p_y, p_photo, p_room)
- {
- this.buildings[this.buildings.length] = {clip:p_clip,x:p_x,y:p_y,photo:p_photo,room:p_room};
- }
- function addObject(p_clip, p_x, p_y, p_photo, p_radius, p_pickup, p_movable)
- {
- this.objects[this.objects.length] = {clip:p_clip,x:p_x,y:p_y,photo:p_photo,radius:p_radius,pickup:p_pickup,movable:p_movable};
- }
- function setLimits(p_lx, p_hx, p_ly, p_hy)
- {
- this.low_x = p_lx;
- this.high_x = p_hx;
- this.low_y = p_ly;
- this.high_y = p_hy;
- }
- function setGround(p_ground, p_hm)
- {
- this.ground = p_ground;
- this.height_map = flash.display.BitmapData.loadBitmap(p_hm);
- }
- function setWeather(p_weather)
- {
- this.weather_num = p_weather;
- }
- function copyIsland()
- {
- var _loc2_ = new Island();
- for(var _loc3_ in this)
- {
- _loc2_[_loc3_] = this[_loc3_];
- }
- return _loc2_;
- }
- }
-