_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c12700
// RunIteration runs every time android calls to update the screen
c12701
// mobileDraw runs once per frame. RunIteration for the other backends
c12702
// NewAnimationComponent creates an AnimationComponent containing all given // drawables. Animations will be played using the given rate.
c12703
// SelectAnimationByName sets the current animation. The name must be // registered.
c12704
// SelectAnimationByAction sets the current animation. // An nil action value selects the default animation.
c12705
// AddDefaultAnimation adds an animation which is used when no other animation is playing.
c12706
// AddAnimation registers an animation under its name, making it available // through SelectAnimationByName.
c12707
// AddAnimations registers all given animations.
c12708
// Cell returns the drawable for the current frame.
c12709
// NextFrame advances the current animation by one frame.
c12710
// Add starts tracking the given entity.
c12711
// AddByInterface Allows an Entity to be added directly using the Animtionable interface. which every entity containing the BasicEntity,AnimationComponent,and RenderComponent anonymously, automatically satisfies.
c12712
// Remove stops tracking the given entity.
c12713
// Update advances the animations of all tracked entities.
c12714
// SetTitle sets the title of the window
c12715
// NewQuadtree creates a new quadtree for the given bounds. // When setting usePool to true, the internal values will be taken from a sync.Pool which reduces the allocation overhead. // maxObjects tells the tree how many objects should be stored within a level before the quadtree cell is split.
c12716
// Destroy frees the nodes if the Quadtree uses the node pool
c12717
// split - split the node into 4 subnodes
c12718
// Insert inserts the given item to the quadtree
c12719
// Remove removes the given item from the quadtree
c12720
// Retrieve returns all objects that could collide with the given bounding box
c12721
// Retrieve returns all objects that could collide with the given bounding box and passing the given filter function.
c12722
//Clear removes all items from the quadtree
c12723
// New is called when FPSSystem is added to the world
c12724
// Update changes the dipslayed text and prints to the terminal every second // to report the FPS
c12725
// Load will load the tmx file and any other image resources that are needed
c12726
// Unload removes the preloaded level from the cache
c12727
// Resource retrieves and returns the preloaded level of type 'TMXResource'
c12728
// Bounds returns the level boundaries as an engo.AABB object
c12729
// mapPoint returns the map point of the passed in screen point
c12730
// screenPoint returns the screen point of the passed in map point
c12731
// View returns the tile's viewport's min and max X & Y
c12732
// Load processes the data stream and parses it as a freetype font
c12733
// Load removes the preloaded font from the cache
c12734
// Resource retrieves the preloaded font, passed as a `FontResource`
c12735
// Close removes the player from the audio system's players, which are currently playing players. // it then finalizes and frees the data from the player. Do not use a player after it has been // closed
c12736
// Seek seeks the position with the given offset. // // Seek returns error when seeking the source stream returns error.
c12737
// Current returns the current position.
c12738
// GetVolume gets the Player's volume
c12739
// SetVolume sets the Player's volume // volume can only be set from 0 to 1
c12740
// Nextafter returns the next representable int value after x towards y.
c12741
// Dispatch sends a message to all subscribed handlers of the message's type // To prevent any data races, be aware that these listeners occur as callbacks and can be // executed at any time. If variables are altered in the handler, utilize channels, locks, // semaphores, or any other method necessary to ensure the mem...
c12742
// Listen subscribes to the specified message type and calls the specified handler when fired
c12743
// StopListen removes a previously added handler from the listener queue
c12744
// Removes a single handler from the handler queue, called during cleanup of all handlers scheduled for removal
c12745
// SetScene sets the currentScene to the given Scene, and // optionally forcing to create a new ecs.World that goes with it.
c12746
// RegisterScene registers the `Scene`, so it can later be used by `SetSceneByName`
c12747
// NewKeyManager creates a new KeyManager.
c12748
// Set is used for updating whether or not a key is held down, or not held down.
c12749
// Get retrieves a keys state.
c12750
// State returns the raw state of a key.
c12751
// Down checks whether the current input is being held down.
c12752
// Run is called to create a window, initialize everything, and start the main loop. Once this function returns, // the game window has been closed already. You can supply a lot of options within `RunOptions`, and your starting // `Scene` should be defined in `defaultScene`.
c12753
// SetFPSLimit can be used to change the value in the given `RunOpts` after already having called `engo.Run`.
c12754
//TouchEvent handles the touch events sent from ios and puts them in the InputManager
c12755
// SetTitle changes the title of the page to the given string
c12756
// WindowSize returns the width and height of the current window
c12757
// jsPollKeys polls the keys collected by the javascript callback // this ensures the keys only get updated once per frame, since the // callback has no information about the frames and is invoked several // times between frames. This makes Input.Button.JustPressed and JustReleased // able to return true properly.
c12758
// RunPreparation is called automatically when calling Open. It should only be called once.
c12759
// SetCursor changes the cursor
c12760
// CreateWindow opens the window and gets a GL surface for rendering
c12761
// WindowSize gets the current window size
c12762
//TouchEvent handles the touch events sent from Android and puts them in the InputManager
c12763
// New initializes the CameraSystem.
c12764
// Update updates the camera. lLong tasks are attempted to update incrementally in batches.
c12765
// FollowEntity sets the camera to follow the entity with BasicEntity basic // and SpaceComponent space.
c12766
// Update updates the camera based on keyboard input.
c12767
// BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller.
c12768
// NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed, // and horizontal and vertical axes.
c12769
// New adjusts CameraBounds to the bounds of EntityScroller.
c12770
// Update moves the camera to the center of the space component. // Values are automatically clamped to TrackingBounds by the camera.
c12771
// Update zooms the camera in and out based on the movement of the scroll wheel.
c12772
// Update rotates the camera if the scroll wheel is pressed down.
c12773
// Corners returns the location of the four corners of the rectangular plane defined by the `SpaceComponent`, taking // into account any possible rotation.
c12774
// triangleArea computes the area of the triangle given by the three points
c12775
// Add adds an entity to the CollisionSystem. To be added, the entity has to have a basic, collision, and space component.
c12776
// AddByInterface Provides a simple way to add an entity to the system that satisfies Collisionable. Any entity containing, BasicEntity,CollisionComponent, and SpaceComponent anonymously, automatically does this.
c12777
// IsIntersecting tells if two engo.AABBs intersect.
c12778
// MinimumTranslation tells how much an entity has to move to no longer overlap another entity.
c12779
// NewMDBStore returns a new MDBStore and potential // error. Requres a base directory from which to operate, // and a maximum size. If maxSize is not 0, a default value is used.
c12780
// initialize is used to setup the mdb store
c12781
// startTxn is used to start a transaction and open all the associated sub-databases
c12782
// Gets a log entry at a given index
c12783
// Stores a log entry
c12784
// Stores multiple log entries
c12785
// Deletes a range of log entries. The range is inclusive.
c12786
// Initialize event listener and channels
c12787
// Close event channels when done message is received
c12788
// Closes the OS specific event listener, // removes all watches and closes all event channels.
c12789
// Remove pid from the watched process set.
c12790
// LookupPrivilegeName looks up a privilege name given a LUID value.
c12791
// mapPrivileges maps privilege names to LUID values.
c12792
// EnableTokenPrivileges enables the specified privileges in the given // Token. The token must have TOKEN_ADJUST_PRIVILEGES access. If the token // does not already contain the privilege it cannot be enabled.
c12793
// GetTokenUser returns the User associated with the given Token.
c12794
// GetDebugInfo returns general debug info about the current process.
c12795
// Initialize bsd implementation of the eventListener interface
c12796
// Initialize Kevent_t fields and propagate changelist for the given pid
c12797
// Delete filter for given pid from the queue
c12798
// Add and enable filter for given pid in the queue
c12799
// Poll the kqueue file descriptor and dispatch to the Event channels